| 1 | <?php |
||
| 17 | class CreateCategoryRequest |
||
| 18 | { |
||
| 19 | /** @var string */ |
||
| 20 | private $name; |
||
| 21 | |||
| 22 | /** @var CategoryInterface */ |
||
| 23 | private $parent; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * CreateCategoryRequest constructor. |
||
| 27 | * |
||
| 28 | * @param string $name |
||
| 29 | * @param CategoryInterface $parent |
||
| 30 | */ |
||
| 31 | public function __construct($name, CategoryInterface $parent) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getName() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return CategoryInterface |
||
| 47 | */ |
||
| 48 | public function getParent() |
||
| 52 | } |
||
| 53 |