-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,340 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?php | ||
|
||
namespace Vette\Shutterstock\Domain\Model\Shutterstock; | ||
|
||
/** | ||
* Abstract Asset | ||
*/ | ||
class AbstractAsset | ||
{ | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $height; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
protected $width; | ||
|
||
|
||
/** | ||
* AbstractAsset constructor. | ||
* | ||
* @param string $id | ||
* @param int $height | ||
* @param int $width | ||
*/ | ||
public function __construct(string $id, int $height, int $width) | ||
{ | ||
$this->id = $id; | ||
$this->height = $height; | ||
$this->width = $width; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getId(): string | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param string $id | ||
* @return self | ||
*/ | ||
public function setId(string $id): self | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getHeight(): int | ||
{ | ||
return $this->height; | ||
} | ||
|
||
/** | ||
* @param int $height | ||
* @return self | ||
*/ | ||
public function setHeight(int $height): self | ||
{ | ||
$this->height = $height; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getWidth(): int | ||
{ | ||
return $this->width; | ||
} | ||
|
||
/** | ||
* @param int $width | ||
* @return self | ||
*/ | ||
public function setWidth(int $width): self | ||
{ | ||
$this->width = $width; | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.