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