mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-18 13:10:08 -07:00
Update Brickset client + Fix coding style
This commit is contained in:
parent
a2e270de14
commit
f2f4e086e6
@ -6,6 +6,9 @@ use AppBundle\Client\Brickset\Entity\AdditionalImage;
|
||||
use AppBundle\Client\Brickset\Entity\Instructions;
|
||||
use AppBundle\Client\Brickset\Entity\Review;
|
||||
use AppBundle\Client\Brickset\Entity\Set;
|
||||
use AppBundle\Client\Brickset\Entity\Subtheme;
|
||||
use AppBundle\Client\Brickset\Entity\Theme;
|
||||
use AppBundle\Client\Brickset\Entity\Year;
|
||||
use Symfony\Component\Asset\Exception\LogicException;
|
||||
use Symfony\Component\Debug\Exception\ContextErrorException;
|
||||
|
||||
@ -24,6 +27,9 @@ class Brickset extends \SoapClient
|
||||
'additionalImages' => AdditionalImage::class,
|
||||
'instructions' => Instructions::class,
|
||||
'reviews' => Review::class,
|
||||
'themes' => Theme::class,
|
||||
'subthemes' => Subtheme::class,
|
||||
'years' => Year::class,
|
||||
);
|
||||
|
||||
/**
|
||||
@ -54,49 +60,46 @@ class Brickset extends \SoapClient
|
||||
$this->apiKey = $apiKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param $theme
|
||||
* @param $subtheme
|
||||
* @param $setNumber
|
||||
* @param $year
|
||||
* @param $owned
|
||||
* @param $wanted
|
||||
* @param $orderBy
|
||||
* @param $pageSize
|
||||
* @param $pageNumber
|
||||
* @param $userName
|
||||
*
|
||||
* @return Set[]
|
||||
*/
|
||||
public function getSets($query, $theme, $subtheme, $setNumber, $year, $owned, $wanted, $orderBy, $pageSize, $pageNumber, $userName)
|
||||
private function call($method, $parameters)
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
'userHash' => $this->userHash,
|
||||
'query' => $query,
|
||||
'theme' => $theme,
|
||||
'subtheme' => $subtheme,
|
||||
'setNumber' => $setNumber,
|
||||
'year' => $year,
|
||||
'owned' => $owned,
|
||||
'wanted' => $wanted,
|
||||
'orderBy' => $orderBy,
|
||||
'pageSize' => $pageSize,
|
||||
'pageNumber' => $pageNumber,
|
||||
'userName' => $userName,
|
||||
];
|
||||
$parameters['apiKey'] = $this->apiKey;
|
||||
|
||||
try {
|
||||
return $this->__soapCall('getSets', [$parameters])->getSetsResult->sets;
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
return $this->__soapCall($method, [$parameters]);
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a list of sets.
|
||||
*
|
||||
* @param array $parameters
|
||||
*
|
||||
* @return Set[]
|
||||
*/
|
||||
public function getSets($parameters)
|
||||
{
|
||||
$parameters['userHash'] = $this->userHash;
|
||||
|
||||
// Add blank required parameters to api call in order to recieve response
|
||||
$required_keys = ['query', 'theme', 'subtheme', 'setNumber', 'year', 'owned', 'wanted', 'orderBy', 'pageSize', 'pageNumber', 'userName'];
|
||||
foreach ($required_keys as $key) {
|
||||
if (!array_key_exists($key, $parameters)) {
|
||||
$parameters[$key] = '';
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
$response = $this->call('getSets', $parameters)->getSetsResult->sets;
|
||||
|
||||
return is_array($response) ? $response : [$response];
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $SetID
|
||||
*
|
||||
@ -104,110 +107,162 @@ class Brickset extends \SoapClient
|
||||
*/
|
||||
public function getSet($SetID)
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
'userHash' => $this->userHash,
|
||||
'SetID' => $SetID,
|
||||
];
|
||||
$parameters = ['userHash' => $this->userHash, 'SetID' => $SetID];
|
||||
|
||||
try {
|
||||
return $this->__soapCall('getSet', [$parameters])->getSetResult->sets[0];
|
||||
return $this->call('getSet', $parameters)->getSetResult->sets;
|
||||
} catch (ContextErrorException $e) {
|
||||
return null;
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of sets that have changed in the last {minutesAgo} minutes.
|
||||
*
|
||||
* @param int $minutesAgo
|
||||
*
|
||||
* @return Set[]
|
||||
*/
|
||||
public function getRecentlyUpdatedSets($minutesAgo)
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
'minutesAgo' => $minutesAgo,
|
||||
];
|
||||
$parameters = ['minutesAgo' => $minutesAgo];
|
||||
|
||||
try {
|
||||
return $this->__soapCall('getRecentlyUpdatedSets', [$parameters])->getRecentlyUpdatedSetsResult->sets;
|
||||
$response = $this->call('getRecentlyUpdatedSets', $parameters)->getRecentlyUpdatedSetsResult->sets;
|
||||
|
||||
return is_array($response) ? $response : [$response];
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $setID
|
||||
* Get a list of URLs of additional set images for the specified set.
|
||||
*
|
||||
* @param int $setID Brickset unique id of set
|
||||
*
|
||||
* @return AdditionalImage[]
|
||||
*/
|
||||
public function getAdditionalImages($setID)
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
'setID' => $setID,
|
||||
];
|
||||
$parameters = ['setID' => $setID];
|
||||
|
||||
try {
|
||||
return $this->__soapCall('getAdditionalImages', [$parameters])->getAdditionalImagesResult->additionalImages;
|
||||
$response = $this->call('getAdditionalImages', $parameters)->getAdditionalImagesResult->additionalImages;
|
||||
|
||||
return is_array($response) ? $response : [$response];
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the reviews for the specified set.
|
||||
*
|
||||
* @param int $setID Brickset unique id of set
|
||||
*
|
||||
* @return Review[]
|
||||
*/
|
||||
public function getReviews($setID)
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
'setID' => $setID,
|
||||
];
|
||||
$parameters = ['setID' => $setID];
|
||||
|
||||
try {
|
||||
return $this->__soapCall('getReviews', [$parameters])->getReviewsResult->reviews;
|
||||
$response = $this->call('getReviews', $parameters)->getReviewsResult->reviews;
|
||||
|
||||
return is_array($response) ? $response : [$response];
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of instructions for the specified set.
|
||||
*
|
||||
* @param int $setID Brickset unique id of set
|
||||
*
|
||||
* @return Instructions[]
|
||||
*/
|
||||
public function getInstructions($setID)
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
'setID' => $setID,
|
||||
];
|
||||
$parameters = ['setID' => $setID];
|
||||
|
||||
try {
|
||||
return $this->__soapCall('getInstructions', [$parameters])->getInstructionsResult->instructions;
|
||||
$response = $this->call('getInstructions', $parameters)->getInstructionsResult->instructions;
|
||||
|
||||
return is_array($response) ? $response : [$response];
|
||||
} catch (ContextErrorException $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of themes, with the total number of sets in each.
|
||||
*
|
||||
* @return Theme[]
|
||||
*/
|
||||
public function getThemes()
|
||||
{
|
||||
try {
|
||||
return $this->call('getThemes', [])->getThemesResult->themes;
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function login($username, $password)
|
||||
/**
|
||||
* Get a list of subthemes for a given theme, with the total number of sets in each.
|
||||
*
|
||||
* @param string $theme Name of theme
|
||||
*
|
||||
* @return Subtheme[]
|
||||
*/
|
||||
public function getSubthemes($theme)
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
'username' => $username,
|
||||
'password' => $password,
|
||||
];
|
||||
$parameters = ['theme' => $theme];
|
||||
|
||||
try {
|
||||
$response = $this->__soapCall('login', [$parameters])->loginResult;
|
||||
$response = $this->call('getSubthemes', $parameters)->getSubthemesResult->subthemes;
|
||||
|
||||
return is_array($response) ? $response : [$response];
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of years for a given theme, with the total number of sets in each.
|
||||
*
|
||||
* @param string $theme Name of theme
|
||||
*
|
||||
* @return Year[]
|
||||
*/
|
||||
public function getYears($theme)
|
||||
{
|
||||
$parameters = ['theme' => $theme];
|
||||
|
||||
try {
|
||||
$response = $this->call('getYears', $parameters)->getYearsResult->years;
|
||||
|
||||
return is_array($response) ? $response : [$response];
|
||||
} catch (ContextErrorException $e) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Log in as a user and retrieve a token that can be used in subsequent API calls.
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
*
|
||||
* @return bool True if successful
|
||||
*/
|
||||
public function login($username, $password)
|
||||
{
|
||||
$parameters = ['username' => $username, 'password' => $password];
|
||||
|
||||
$response = $this->call('login', $parameters)->loginResult;
|
||||
if ($response == 'INVALIDKEY') {
|
||||
return false;
|
||||
} elseif (strpos($response, 'ERROR:') === 0) {
|
||||
@ -217,26 +272,15 @@ class Brickset extends \SoapClient
|
||||
|
||||
return true;
|
||||
}
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
* Check if an API key is valid.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function checkKey()
|
||||
{
|
||||
$parameters = [
|
||||
'apiKey' => $this->apiKey,
|
||||
];
|
||||
|
||||
try {
|
||||
return ($this->__soapCall('checkKey', [$parameters])->checkKeyResult) == 'OK' ? true : false;
|
||||
} catch (\SoapFault $e) {
|
||||
//TODO
|
||||
throw new LogicException($e->getCode().' - '.$e->getMessage());
|
||||
}
|
||||
return ($this->call('checkKey', [])->checkKeyResult) == 'OK' ? true : false;
|
||||
}
|
||||
}
|
||||
|
@ -4,26 +4,23 @@ namespace AppBundle\Client\Brickset\Entity;
|
||||
|
||||
class AdditionalImage
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string $thumbnailURL
|
||||
* @var string
|
||||
*/
|
||||
protected $thumbnailURL = null;
|
||||
|
||||
/**
|
||||
* @var string $largeThumbnailURL
|
||||
* @var string
|
||||
*/
|
||||
protected $largeThumbnailURL = null;
|
||||
|
||||
/**
|
||||
* @var string $imageURL
|
||||
* @var string
|
||||
*/
|
||||
protected $imageURL = null;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -36,11 +33,13 @@ class AdditionalImage
|
||||
|
||||
/**
|
||||
* @param string $thumbnailURL
|
||||
*
|
||||
* @return AdditionalImage
|
||||
*/
|
||||
public function setThumbnailURL($thumbnailURL)
|
||||
{
|
||||
$this->thumbnailURL = $thumbnailURL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -54,11 +53,13 @@ class AdditionalImage
|
||||
|
||||
/**
|
||||
* @param string $largeThumbnailURL
|
||||
*
|
||||
* @return AdditionalImage
|
||||
*/
|
||||
public function setLargeThumbnailURL($largeThumbnailURL)
|
||||
{
|
||||
$this->largeThumbnailURL = $largeThumbnailURL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -72,12 +73,13 @@ class AdditionalImage
|
||||
|
||||
/**
|
||||
* @param string $imageURL
|
||||
*
|
||||
* @return AdditionalImage
|
||||
*/
|
||||
public function setImageURL($imageURL)
|
||||
{
|
||||
$this->imageURL = $imageURL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,19 +5,17 @@ namespace AppBundle\Client\Brickset\Entity;
|
||||
class Instructions
|
||||
{
|
||||
/**
|
||||
* @var string $URL
|
||||
* @var string
|
||||
*/
|
||||
protected $URL = null;
|
||||
|
||||
/**
|
||||
* @var string $description
|
||||
* @var string
|
||||
*/
|
||||
protected $description = null;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -30,11 +28,13 @@ class Instructions
|
||||
|
||||
/**
|
||||
* @param string $URL
|
||||
*
|
||||
* @return Instructions
|
||||
*/
|
||||
public function setURL($URL)
|
||||
{
|
||||
$this->URL = $URL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -48,12 +48,13 @@ class Instructions
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
*
|
||||
* @return Instructions
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,54 +4,53 @@ namespace AppBundle\Client\Brickset\Entity;
|
||||
|
||||
class Review
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string $author
|
||||
* @var string
|
||||
*/
|
||||
protected $author = null;
|
||||
|
||||
/**
|
||||
* @var \DateTime $datePosted
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $datePosted = null;
|
||||
|
||||
/**
|
||||
* @var int $overallRating
|
||||
* @var int
|
||||
*/
|
||||
protected $overallRating = null;
|
||||
|
||||
/**
|
||||
* @var int $parts
|
||||
* @var int
|
||||
*/
|
||||
protected $parts = null;
|
||||
|
||||
/**
|
||||
* @var int $buildingExperience
|
||||
* @var int
|
||||
*/
|
||||
protected $buildingExperience = null;
|
||||
|
||||
/**
|
||||
* @var int $playability
|
||||
* @var int
|
||||
*/
|
||||
protected $playability = null;
|
||||
|
||||
/**
|
||||
* @var int $valueForMoney
|
||||
* @var int
|
||||
*/
|
||||
protected $valueForMoney = null;
|
||||
|
||||
/**
|
||||
* @var string $title
|
||||
* @var string
|
||||
*/
|
||||
protected $title = null;
|
||||
|
||||
/**
|
||||
* @var string $review
|
||||
* @var string
|
||||
*/
|
||||
protected $review = null;
|
||||
|
||||
/**
|
||||
* @var boolean $HTML
|
||||
* @var bool
|
||||
*/
|
||||
protected $HTML = null;
|
||||
|
||||
@ -62,7 +61,7 @@ class Review
|
||||
* @param int $buildingExperience
|
||||
* @param int $playability
|
||||
* @param int $valueForMoney
|
||||
* @param boolean $HTML
|
||||
* @param bool $HTML
|
||||
*/
|
||||
public function __construct(\DateTime $datePosted, $overallRating, $parts, $buildingExperience, $playability, $valueForMoney, $HTML)
|
||||
{
|
||||
@ -85,11 +84,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param string $author
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setAuthor($author)
|
||||
{
|
||||
$this->author = $author;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -111,11 +112,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param \DateTime $datePosted
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setDatePosted(\DateTime $datePosted)
|
||||
{
|
||||
$this->datePosted = $datePosted->format(\DateTime::ATOM);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -129,11 +132,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param int $overallRating
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setOverallRating($overallRating)
|
||||
{
|
||||
$this->overallRating = $overallRating;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -147,11 +152,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param int $parts
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setParts($parts)
|
||||
{
|
||||
$this->parts = $parts;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -165,11 +172,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param int $buildingExperience
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setBuildingExperience($buildingExperience)
|
||||
{
|
||||
$this->buildingExperience = $buildingExperience;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -183,11 +192,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param int $playability
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setPlayability($playability)
|
||||
{
|
||||
$this->playability = $playability;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -201,11 +212,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param int $valueForMoney
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setValueForMoney($valueForMoney)
|
||||
{
|
||||
$this->valueForMoney = $valueForMoney;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -219,11 +232,13 @@ class Review
|
||||
|
||||
/**
|
||||
* @param string $title
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -237,16 +252,18 @@ class Review
|
||||
|
||||
/**
|
||||
* @param string $review
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setReview($review)
|
||||
{
|
||||
$this->review = $review;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function getHTML()
|
||||
{
|
||||
@ -254,13 +271,14 @@ class Review
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $HTML
|
||||
* @param bool $HTML
|
||||
*
|
||||
* @return Review
|
||||
*/
|
||||
public function setHTML($HTML)
|
||||
{
|
||||
$this->HTML = $HTML;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,212 +5,187 @@ namespace AppBundle\Client\Brickset\Entity;
|
||||
class Set
|
||||
{
|
||||
/**
|
||||
* @var int $setID
|
||||
* @var int
|
||||
*/
|
||||
protected $setID = null;
|
||||
|
||||
/**
|
||||
* @var string $number
|
||||
* @var string
|
||||
*/
|
||||
protected $number = null;
|
||||
|
||||
/**
|
||||
* @var int $numberVariant
|
||||
* @var int
|
||||
*/
|
||||
protected $numberVariant = null;
|
||||
|
||||
/**
|
||||
* @var string $name
|
||||
* @var string
|
||||
*/
|
||||
protected $name = null;
|
||||
|
||||
/**
|
||||
* @var string $year
|
||||
* @var string
|
||||
*/
|
||||
protected $year = null;
|
||||
|
||||
/**
|
||||
* @var string $theme
|
||||
* @var string
|
||||
*/
|
||||
protected $theme = null;
|
||||
|
||||
/**
|
||||
* @var string $themeGroup
|
||||
* @var string
|
||||
*/
|
||||
protected $themeGroup = null;
|
||||
|
||||
/**
|
||||
* @var string $subtheme
|
||||
* @var string
|
||||
*/
|
||||
protected $subtheme = null;
|
||||
|
||||
/**
|
||||
* @var string $pieces
|
||||
* @var string
|
||||
*/
|
||||
protected $pieces = null;
|
||||
|
||||
/**
|
||||
* @var string $minifigs
|
||||
* @var string
|
||||
*/
|
||||
protected $minifigs = null;
|
||||
|
||||
/**
|
||||
* @var boolean $image
|
||||
* @var bool
|
||||
*/
|
||||
protected $image = null;
|
||||
|
||||
/**
|
||||
* @var string $imageFilename
|
||||
* @var string
|
||||
*/
|
||||
protected $imageFilename = null;
|
||||
|
||||
/**
|
||||
* @var string $thumbnailURL
|
||||
* @var string
|
||||
*/
|
||||
protected $thumbnailURL = null;
|
||||
|
||||
/**
|
||||
* @var string $largeThumbnailURL
|
||||
* @var string
|
||||
*/
|
||||
protected $largeThumbnailURL = null;
|
||||
|
||||
/**
|
||||
* @var string $imageURL
|
||||
* @var string
|
||||
*/
|
||||
protected $imageURL = null;
|
||||
|
||||
/**
|
||||
* @var string $bricksetURL
|
||||
* @var string
|
||||
*/
|
||||
protected $bricksetURL = null;
|
||||
|
||||
/**
|
||||
* @var boolean $released
|
||||
* @var bool
|
||||
*/
|
||||
protected $released = null;
|
||||
|
||||
/**
|
||||
* @var boolean $owned
|
||||
* @var bool
|
||||
*/
|
||||
protected $owned = null;
|
||||
|
||||
/**
|
||||
* @var boolean $wanted
|
||||
* @var bool
|
||||
*/
|
||||
protected $wanted = null;
|
||||
|
||||
/**
|
||||
* @var int $qtyOwned
|
||||
* @var int
|
||||
*/
|
||||
protected $qtyOwned = null;
|
||||
|
||||
/**
|
||||
* @var string $userNotes
|
||||
* @var string
|
||||
*/
|
||||
protected $userNotes = null;
|
||||
|
||||
/**
|
||||
* @var int $ACMDataCount
|
||||
* @var int
|
||||
*/
|
||||
protected $ACMDataCount = null;
|
||||
|
||||
/**
|
||||
* @var int $ownedByTotal
|
||||
* @var int
|
||||
*/
|
||||
protected $ownedByTotal = null;
|
||||
|
||||
/**
|
||||
* @var int $wantedByTotal
|
||||
* @var int
|
||||
*/
|
||||
protected $wantedByTotal = null;
|
||||
|
||||
/**
|
||||
* @var string $UKRetailPrice
|
||||
* @var string
|
||||
*/
|
||||
protected $UKRetailPrice = null;
|
||||
|
||||
/**
|
||||
* @var string $USRetailPrice
|
||||
*/
|
||||
protected $USRetailPrice = null;
|
||||
|
||||
/**
|
||||
* @var string $CARetailPrice
|
||||
*/
|
||||
protected $CARetailPrice = null;
|
||||
|
||||
/**
|
||||
* @var string $EURetailPrice
|
||||
*/
|
||||
protected $EURetailPrice = null;
|
||||
|
||||
/**
|
||||
* @var string $USDateAddedToSAH
|
||||
*/
|
||||
protected $USDateAddedToSAH = null;
|
||||
|
||||
/**
|
||||
* @var string $USDateRemovedFromSAH
|
||||
*/
|
||||
protected $USDateRemovedFromSAH = null;
|
||||
|
||||
/**
|
||||
* @var float $rating
|
||||
* @var float
|
||||
*/
|
||||
protected $rating = null;
|
||||
|
||||
/**
|
||||
* @var int $reviewCount
|
||||
* @var int
|
||||
*/
|
||||
protected $reviewCount = null;
|
||||
|
||||
/**
|
||||
* @var string $packagingType
|
||||
* @var string
|
||||
*/
|
||||
protected $packagingType = null;
|
||||
|
||||
/**
|
||||
* @var string $availability
|
||||
* @var string
|
||||
*/
|
||||
protected $availability = null;
|
||||
|
||||
/**
|
||||
* @var int $instructionsCount
|
||||
* @var int
|
||||
*/
|
||||
protected $instructionsCount = null;
|
||||
|
||||
/**
|
||||
* @var int $additionalImageCount
|
||||
* @var int
|
||||
*/
|
||||
protected $additionalImageCount = null;
|
||||
|
||||
/**
|
||||
* @var string $EAN
|
||||
* @var string
|
||||
*/
|
||||
protected $EAN = null;
|
||||
|
||||
/**
|
||||
* @var string $UPC
|
||||
* @var string
|
||||
*/
|
||||
protected $UPC = null;
|
||||
|
||||
/**
|
||||
* @var string $description
|
||||
* @var string
|
||||
*/
|
||||
protected $description = null;
|
||||
|
||||
/**
|
||||
* @var \DateTime $lastUpdated
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $lastUpdated = null;
|
||||
|
||||
/**
|
||||
* @param int $setID
|
||||
* @param int $numberVariant
|
||||
* @param boolean $image
|
||||
* @param boolean $released
|
||||
* @param boolean $owned
|
||||
* @param boolean $wanted
|
||||
* @param bool $image
|
||||
* @param bool $released
|
||||
* @param bool $owned
|
||||
* @param bool $wanted
|
||||
* @param int $qtyOwned
|
||||
* @param int $ACMDataCount
|
||||
* @param int $ownedByTotal
|
||||
@ -250,11 +225,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $setID
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setSetID($setID)
|
||||
{
|
||||
$this->setID = $setID;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -268,11 +245,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $number
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setNumber($number)
|
||||
{
|
||||
$this->number = $number;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -286,11 +265,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $numberVariant
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setNumberVariant($numberVariant)
|
||||
{
|
||||
$this->numberVariant = $numberVariant;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -304,11 +285,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -322,11 +305,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $year
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setYear($year)
|
||||
{
|
||||
$this->year = $year;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -340,11 +325,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $theme
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setTheme($theme)
|
||||
{
|
||||
$this->theme = $theme;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -358,11 +345,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $themeGroup
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setThemeGroup($themeGroup)
|
||||
{
|
||||
$this->themeGroup = $themeGroup;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -376,11 +365,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $subtheme
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setSubtheme($subtheme)
|
||||
{
|
||||
$this->subtheme = $subtheme;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -394,11 +385,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $pieces
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setPieces($pieces)
|
||||
{
|
||||
$this->pieces = $pieces;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -412,16 +405,18 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $minifigs
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setMinifigs($minifigs)
|
||||
{
|
||||
$this->minifigs = $minifigs;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function getImage()
|
||||
{
|
||||
@ -429,12 +424,14 @@ class Set
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $image
|
||||
* @param bool $image
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setImage($image)
|
||||
{
|
||||
$this->image = $image;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -448,11 +445,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $imageFilename
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setImageFilename($imageFilename)
|
||||
{
|
||||
$this->imageFilename = $imageFilename;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -466,11 +465,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $thumbnailURL
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setThumbnailURL($thumbnailURL)
|
||||
{
|
||||
$this->thumbnailURL = $thumbnailURL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -484,11 +485,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $largeThumbnailURL
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setLargeThumbnailURL($largeThumbnailURL)
|
||||
{
|
||||
$this->largeThumbnailURL = $largeThumbnailURL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -502,11 +505,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $imageURL
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setImageURL($imageURL)
|
||||
{
|
||||
$this->imageURL = $imageURL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -520,16 +525,18 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $bricksetURL
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setBricksetURL($bricksetURL)
|
||||
{
|
||||
$this->bricksetURL = $bricksetURL;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function getReleased()
|
||||
{
|
||||
@ -537,17 +544,19 @@ class Set
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $released
|
||||
* @param bool $released
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setReleased($released)
|
||||
{
|
||||
$this->released = $released;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function getOwned()
|
||||
{
|
||||
@ -555,17 +564,19 @@ class Set
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $owned
|
||||
* @param bool $owned
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setOwned($owned)
|
||||
{
|
||||
$this->owned = $owned;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function getWanted()
|
||||
{
|
||||
@ -573,12 +584,14 @@ class Set
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $wanted
|
||||
* @param bool $wanted
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setWanted($wanted)
|
||||
{
|
||||
$this->wanted = $wanted;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -592,11 +605,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $qtyOwned
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setQtyOwned($qtyOwned)
|
||||
{
|
||||
$this->qtyOwned = $qtyOwned;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -610,11 +625,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $userNotes
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setUserNotes($userNotes)
|
||||
{
|
||||
$this->userNotes = $userNotes;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -628,11 +645,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $ACMDataCount
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setACMDataCount($ACMDataCount)
|
||||
{
|
||||
$this->ACMDataCount = $ACMDataCount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -646,11 +665,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $ownedByTotal
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setOwnedByTotal($ownedByTotal)
|
||||
{
|
||||
$this->ownedByTotal = $ownedByTotal;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -664,119 +685,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $wantedByTotal
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setWantedByTotal($wantedByTotal)
|
||||
{
|
||||
$this->wantedByTotal = $wantedByTotal;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUKRetailPrice()
|
||||
{
|
||||
return $this->UKRetailPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $UKRetailPrice
|
||||
* @return Set
|
||||
*/
|
||||
public function setUKRetailPrice($UKRetailPrice)
|
||||
{
|
||||
$this->UKRetailPrice = $UKRetailPrice;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUSRetailPrice()
|
||||
{
|
||||
return $this->USRetailPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $USRetailPrice
|
||||
* @return Set
|
||||
*/
|
||||
public function setUSRetailPrice($USRetailPrice)
|
||||
{
|
||||
$this->USRetailPrice = $USRetailPrice;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCARetailPrice()
|
||||
{
|
||||
return $this->CARetailPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $CARetailPrice
|
||||
* @return Set
|
||||
*/
|
||||
public function setCARetailPrice($CARetailPrice)
|
||||
{
|
||||
$this->CARetailPrice = $CARetailPrice;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEURetailPrice()
|
||||
{
|
||||
return $this->EURetailPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $EURetailPrice
|
||||
* @return Set
|
||||
*/
|
||||
public function setEURetailPrice($EURetailPrice)
|
||||
{
|
||||
$this->EURetailPrice = $EURetailPrice;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUSDateAddedToSAH()
|
||||
{
|
||||
return $this->USDateAddedToSAH;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $USDateAddedToSAH
|
||||
* @return Set
|
||||
*/
|
||||
public function setUSDateAddedToSAH($USDateAddedToSAH)
|
||||
{
|
||||
$this->USDateAddedToSAH = $USDateAddedToSAH;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUSDateRemovedFromSAH()
|
||||
{
|
||||
return $this->USDateRemovedFromSAH;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $USDateRemovedFromSAH
|
||||
* @return Set
|
||||
*/
|
||||
public function setUSDateRemovedFromSAH($USDateRemovedFromSAH)
|
||||
{
|
||||
$this->USDateRemovedFromSAH = $USDateRemovedFromSAH;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -790,11 +705,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param float $rating
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setRating($rating)
|
||||
{
|
||||
$this->rating = $rating;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -808,11 +725,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $reviewCount
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setReviewCount($reviewCount)
|
||||
{
|
||||
$this->reviewCount = $reviewCount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -826,11 +745,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $packagingType
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setPackagingType($packagingType)
|
||||
{
|
||||
$this->packagingType = $packagingType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -844,11 +765,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $availability
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setAvailability($availability)
|
||||
{
|
||||
$this->availability = $availability;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -862,11 +785,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $instructionsCount
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setInstructionsCount($instructionsCount)
|
||||
{
|
||||
$this->instructionsCount = $instructionsCount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -880,11 +805,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param int $additionalImageCount
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setAdditionalImageCount($additionalImageCount)
|
||||
{
|
||||
$this->additionalImageCount = $additionalImageCount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -898,11 +825,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $EAN
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setEAN($EAN)
|
||||
{
|
||||
$this->EAN = $EAN;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -916,11 +845,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $UPC
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setUPC($UPC)
|
||||
{
|
||||
$this->UPC = $UPC;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -934,11 +865,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -960,12 +893,13 @@ class Set
|
||||
|
||||
/**
|
||||
* @param \DateTime $lastUpdated
|
||||
*
|
||||
* @return Set
|
||||
*/
|
||||
public function setLastUpdated(\DateTime $lastUpdated)
|
||||
{
|
||||
$this->lastUpdated = $lastUpdated->format(\DateTime::ATOM);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
119
src/AppBundle/Client/Brickset/Entity/Subtheme.php
Normal file
119
src/AppBundle/Client/Brickset/Entity/Subtheme.php
Normal file
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: hubnedav
|
||||
* Date: 11/11/16
|
||||
* Time: 7:13 PM.
|
||||
*/
|
||||
|
||||
namespace AppBundle\Client\Brickset\Entity;
|
||||
|
||||
class Subtheme
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $theme;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $subtheme;
|
||||
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
protected $setCount;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $yearFrom;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $yearTo;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getTheme()
|
||||
{
|
||||
return $this->theme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $theme
|
||||
*/
|
||||
public function setTheme($theme)
|
||||
{
|
||||
$this->theme = $theme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSetCount()
|
||||
{
|
||||
return $this->setCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $setCount
|
||||
*/
|
||||
public function setSetCount($setCount)
|
||||
{
|
||||
$this->setCount = $setCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSubtheme()
|
||||
{
|
||||
return $this->subtheme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $subtheme
|
||||
*/
|
||||
public function setSubtheme($subtheme)
|
||||
{
|
||||
$this->subtheme = $subtheme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getYearFrom()
|
||||
{
|
||||
return $this->yearFrom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $yearFrom
|
||||
*/
|
||||
public function setYearFrom($yearFrom)
|
||||
{
|
||||
$this->yearFrom = $yearFrom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getYearTo()
|
||||
{
|
||||
return $this->yearTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $yearTo
|
||||
*/
|
||||
public function setYearTo($yearTo)
|
||||
{
|
||||
$this->yearTo = $yearTo;
|
||||
}
|
||||
}
|
117
src/AppBundle/Client/Brickset/Entity/Theme.php
Normal file
117
src/AppBundle/Client/Brickset/Entity/Theme.php
Normal file
@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: hubnedav
|
||||
* Date: 11/11/16
|
||||
* Time: 7:13 PM.
|
||||
*/
|
||||
|
||||
namespace AppBundle\Client\Brickset\Entity;
|
||||
|
||||
class Theme
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $theme;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $setCount;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $subthemeCount;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $yearFrom;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $yearTo;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getTheme()
|
||||
{
|
||||
return $this->theme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $theme
|
||||
*/
|
||||
public function setTheme($theme)
|
||||
{
|
||||
$this->theme = $theme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSetCount()
|
||||
{
|
||||
return $this->setCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $setCount
|
||||
*/
|
||||
public function setSetCount($setCount)
|
||||
{
|
||||
$this->setCount = $setCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSubthemeCount()
|
||||
{
|
||||
return $this->subthemeCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $subthemeCount
|
||||
*/
|
||||
public function setSubthemeCount($subthemeCount)
|
||||
{
|
||||
$this->subthemeCount = $subthemeCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getYearFrom()
|
||||
{
|
||||
return $this->yearFrom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $yearFrom
|
||||
*/
|
||||
public function setYearFrom($yearFrom)
|
||||
{
|
||||
$this->yearFrom = $yearFrom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getYearTo()
|
||||
{
|
||||
return $this->yearTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $yearTo
|
||||
*/
|
||||
public function setYearTo($yearTo)
|
||||
{
|
||||
$this->yearTo = $yearTo;
|
||||
}
|
||||
}
|
78
src/AppBundle/Client/Brickset/Entity/Year.php
Normal file
78
src/AppBundle/Client/Brickset/Entity/Year.php
Normal file
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: hubnedav
|
||||
* Date: 11/20/16
|
||||
* Time: 11:17 PM.
|
||||
*/
|
||||
|
||||
namespace AppBundle\Client\Brickset\Entity;
|
||||
|
||||
class Year
|
||||
{
|
||||
protected $theme;
|
||||
protected $year;
|
||||
protected $setCount;
|
||||
|
||||
/**
|
||||
* Year constructor.
|
||||
*
|
||||
* @param $theme
|
||||
* @param $year
|
||||
* @param $setCount
|
||||
*/
|
||||
public function __construct($theme, $year, $setCount)
|
||||
{
|
||||
$this->theme = $theme;
|
||||
$this->year = $year;
|
||||
$this->setCount = $setCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getTheme()
|
||||
{
|
||||
return $this->theme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $theme
|
||||
*/
|
||||
public function setTheme($theme)
|
||||
{
|
||||
$this->theme = $theme;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getYear()
|
||||
{
|
||||
return $this->year;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $year
|
||||
*/
|
||||
public function setYear($year)
|
||||
{
|
||||
$this->year = $year;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSetCount()
|
||||
{
|
||||
return $this->setCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $setCount
|
||||
*/
|
||||
public function setSetCount($setCount)
|
||||
{
|
||||
$this->setCount = $setCount;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user