本文整理汇总了PHP中Wubs\Trakt\Request\AbstractRequest::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractRequest::__construct方法的具体用法?PHP AbstractRequest::__construct怎么用?PHP AbstractRequest::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wubs\Trakt\Request\AbstractRequest
的用法示例。
在下文中一共展示了AbstractRequest::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param AccessToken $token
* @param $username
* @param $type
*/
public function __construct($username, $type, AccessToken $token = null)
{
parent::__construct();
$this->setToken($token);
$this->type = $type;
$this->username = $username;
}
示例2: __construct
public function __construct(AccessToken $accessToken, Carbon $startDate = null, $days = null)
{
parent::__construct();
$this->setStartDate($startDate);
$this->setDays($days);
$this->setToken($accessToken);
}
示例3: __construct
/**
* @param AccessToken $token
* @param $section
* @param $type
*/
public function __construct(AccessToken $token, $section, $type)
{
parent::__construct();
$this->setToken($token);
$this->section = $section;
$this->type = $type;
}
示例4: __construct
/**
* @param AccessToken $token
* @param $username
* @param array $list
*/
public function __construct(AccessToken $token, $username, $list)
{
parent::__construct();
$this->setToken($token);
$this->list = $list;
$this->username = $username;
}
示例5: __construct
/**
* @param AccessToken $token
* @param $commentId
*/
public function __construct(AccessToken $token, $commentId)
{
parent::__construct();
$this->commentId = $commentId;
$this->setToken($token);
$this->setResponseHandler(new DefaultDeleteHandler());
}
示例6: __construct
/**
* @param int $mediaId
* @param int $season
* @param int $episode
*/
public function __construct($mediaId, $season, $episode)
{
parent::__construct();
$this->id = $mediaId;
$this->episode = $episode;
$this->season = $season;
}
示例7: __construct
/**
* @param string $username
* @param null $listId
* @param AccessToken|null $token
*/
public function __construct($username, $listId = null, AccessToken $token = null)
{
parent::__construct();
$this->setToken($token);
$this->username = $username;
$this->listId = $listId;
}
示例8: __construct
/**
* @param AccessToken $token
* @param $type
* @param $id
*/
public function __construct(AccessToken $token, $type, $id = null)
{
parent::__construct();
$this->setToken($token);
$this->id = $id;
$this->type = $type;
}
示例9: __construct
/**
* @param AccessToken $token
* @param $type
* @param null $rating
*/
public function __construct(AccessToken $token, $type, $rating = null)
{
parent::__construct();
$this->setToken($token);
$this->rating = $rating;
$this->type = $type;
}
示例10: __construct
/**
* @param AccessToken $accessToken
* @param Carbon $startDate
* @param $days
*/
public function __construct(AccessToken $accessToken, Carbon $startDate = null, $days = null)
{
parent::__construct();
$this->setDays($days);
$this->setStartDate($startDate);
// $this->setResponseHandler(new ShowsResponse());
$this->setToken($accessToken);
}
示例11: __construct
/**
* @param AccessToken $token
* @param $username
* @param $listId
* @param $itemsToRemove
*/
public function __construct(AccessToken $token, $username, $listId, $itemsToRemove)
{
parent::__construct();
$this->setToken($token);
$this->itemsToRemove = $itemsToRemove;
$this->listId = $listId;
$this->username = $username;
}
示例12: __construct
/**
* @param AccessToken $token
* @param $username
* @param $id
* @param array $updates
*/
public function __construct(AccessToken $token, $username, $id, $updates)
{
parent::__construct();
$this->setToken($token);
$this->id = $id;
$this->username = $username;
$this->updates = $updates;
}
示例13: __construct
/**
* @param string $idType
* @param $mediaId
*/
public function __construct($idType, $mediaId, AccessToken $token = null)
{
parent::__construct();
$this->setQueryParams(["id_type" => $idType, "id" => $mediaId]);
if ($token !== null) {
$this->setToken($token);
}
$this->setResponseHandler(new SearchHandler());
}
示例14: __construct
/**
* @param Media $media
* @param $comment
* @param $spoiler
* @throws CommentTooShortException
*/
public function __construct(Media $media, $comment, $spoiler = false)
{
parent::__construct();
$this->comment = $comment;
$this->media = $media;
$this->spoiler = $spoiler;
if ($this->commentIsNotAllowedSize()) {
throw new CommentTooShortException();
}
}
示例15: __construct
/**
* @param int $commentId
* @param string $comment
* @param bool $spoiler
* @throws CommentTooShortException
*/
public function __construct($commentId, $comment, $spoiler)
{
parent::__construct();
$this->id = $commentId;
$this->comment = $comment;
$this->spoiler = $spoiler;
$this->setResponseHandler(new CommentHandler());
if ($this->commentIsNotAllowedSize()) {
throw new CommentTooShortException();
}
}