blob: 4c9a6f02d5dd995d52fed94edfa852ca461cb79b [file] [log] [blame]
<?php
namespace PredictionIO\Command;
use Guzzle\Http\Message\RequestInterface;
use Guzzle\Service\Command\AbstractCommand;
/**
* Add Like
*
* A user likes an item
*
* @guzzle uid type="string" required="true"
* @guzzle iid type="string" required="true"
* @guzzle t type="string"
* @guzzle latlng type="string"
*/
class UserLikeItem extends UserActionItem
{
/**
* Create the request object that will carry out the command. Used internally by Guzzle.
*/
protected function build()
{
$this->request = $this->client->createRequest(RequestInterface::POST, 'actions/u2i/like', null, $this->getAll());
}
}
?>