-
Notifications
You must be signed in to change notification settings - Fork 5
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
7 changed files
with
215 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
namespace PDP\Integration\Api\Data; | ||
|
||
interface CustomSizeInterface extends \Magento\Framework\Api\ExtensibleDataInterface { | ||
|
||
const SIZE_LAYOUT = 'size_layout'; | ||
const HEIGHT = 'height'; | ||
const WDTH = 'wdth'; | ||
const UNIT = 'unit'; | ||
|
||
/** | ||
* Gets size layout | ||
* | ||
* @return string|null size layout. Otherwise, null. | ||
*/ | ||
public function getSizeLayout(); | ||
|
||
/** | ||
* Sets size layout | ||
* | ||
* @param string $sizeLayout | ||
* @return $this | ||
*/ | ||
public function setSizeLayout($sizeLayout); | ||
|
||
/** | ||
* Gets size height | ||
* | ||
* @return int|null height. Otherwise, null. | ||
*/ | ||
public function getHeight(); | ||
|
||
/** | ||
* Sets size height | ||
* | ||
* @param int $height | ||
* @return $this | ||
*/ | ||
public function setHeight($height); | ||
|
||
/** | ||
* Gets size width | ||
* | ||
* @return int|null width. Otherwise, null. | ||
*/ | ||
public function getWidth(); | ||
|
||
/** | ||
* Sets size height | ||
* | ||
* @param int $width | ||
* @return $this | ||
*/ | ||
public function setWidth($width); | ||
|
||
/** | ||
* Gets size unit | ||
* | ||
* @return string|null size unit. Otherwise, null. | ||
*/ | ||
public function getUnit(); | ||
|
||
/** | ||
* Sets size unit | ||
* | ||
* @param int $unit | ||
* @return $this | ||
*/ | ||
public function setUnit($unit); | ||
|
||
} |
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,84 @@ | ||
<?php | ||
namespace PDP\Integration\Model; | ||
|
||
use Magento\Framework\Api\AbstractExtensibleObject; | ||
use PDP\Integration\Api\Data\CustomSizeInterface; | ||
|
||
class CustomSize extends AbstractExtensibleObject implements CustomSizeInterface { | ||
|
||
/** | ||
* Gets size layout | ||
* | ||
* @return string|null size layout. Otherwise, null. | ||
*/ | ||
public function getSizeLayout() { | ||
return $this->_get(self::SIZE_LAYOUT); | ||
} | ||
|
||
/** | ||
* Sets size layout | ||
* | ||
* @param string $sizeLayout | ||
* @return $this | ||
*/ | ||
public function setSizeLayout($sizeLayout) { | ||
return $this->setData(self::SIZE_LAYOUT, $sizeLayout); | ||
} | ||
|
||
/** | ||
* Gets size height | ||
* | ||
* @return int|null height. Otherwise, null. | ||
*/ | ||
public function getHeight() { | ||
return $this->_get(self::HEIGHT); | ||
} | ||
|
||
/** | ||
* Sets size height | ||
* | ||
* @param int $height | ||
* @return $this | ||
*/ | ||
public function setHeight($height) { | ||
return $this->setData(self::HEIGHT, $height); | ||
} | ||
|
||
/** | ||
* Gets size width | ||
* | ||
* @return int|null width. Otherwise, null. | ||
*/ | ||
public function getWidth() { | ||
return $this->_get(self::WDTH); | ||
} | ||
|
||
/** | ||
* Sets size height | ||
* | ||
* @param int $width | ||
* @return $this | ||
*/ | ||
public function setWidth($width) { | ||
return $this->setData(self::WDTH, $width); | ||
} | ||
|
||
/** | ||
* Gets size unit | ||
* | ||
* @return string|null size unit. Otherwise, null. | ||
*/ | ||
public function getUnit() { | ||
return $this->_get(self::UNIT); | ||
} | ||
|
||
/** | ||
* Sets size unit | ||
* | ||
* @param int $unit | ||
* @return $this | ||
*/ | ||
public function setUnit($unit) { | ||
return $this->setData(self::UNIT, $unit); | ||
} | ||
} |
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