for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Silverback API Components Bundle Project
*
* (c) Daniel West <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Silverback\ApiComponentsBundle\Entity\Core;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Silverback\ApiComponentsBundle\Entity\Utility\IdTrait;
use Silverback\ApiComponentsBundle\Entity\Utility\UiTrait;
/**
* @author Daniel West <[email protected]>
abstract class AbstractComponent implements ComponentInterface
{
use IdTrait;
use UiTrait;
* @var Collection|ComponentPosition[]
public Collection $componentPositions;
public function __construct()
$this->initComponentCollections();
$this->componentPositions = new ArrayCollection();
}
public function isPositionRestricted(): bool
return false;