for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Silverback\ApiComponentBundle\Factory\Entity\Content\Component;
use Silverback\ApiComponentBundle\Entity\Component\ComponentLocation;
use Silverback\ApiComponentBundle\Factory\Entity\AbstractFactory;
class ComponentLocationFactory extends AbstractFactory
{
/**
* @inheritdoc
*/
public function create(?array $ops = null): ComponentLocation
$component = new ComponentLocation();
$this->init($component, $ops);
$this->validate($component);
return $component;
}
protected static function defaultOps(): array
return [
'component' => null,
'content' => null,
'dynamicPageClass' => null
];