for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) Tomasz Kunicki <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Domain\CategoryStructure\UseCase\MoveCategory;
use Domain\Category\Entity\CategoryInterface;
* Class MoveCategoryRequest
* @package Domain\CategoryStructure\UseCase\MoveCategory
class MoveCategoryRequest
{
/** @var CategoryInterface */
private $child;
private $newParent;
* MoveCategoryRequest constructor.
* @param CategoryInterface $child
* @param CategoryInterface $newParent
public function __construct(CategoryInterface $child, CategoryInterface $newParent)
$this->child = $child;
$this->newParent = $newParent;
}
* @return CategoryInterface
public function getChild()
return $this->child;
public function getNewParent()
return $this->newParent;