for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HelloWordPl\SimpleEntityGeneratorBundle\Lib\Items;
use HelloWordPl\SimpleEntityGeneratorBundle\Lib\Interfaces\RenderableInterface;
use Symfony\Component\Validator\Constraints as Assert;
use HelloWordPl\SimpleEntityGeneratorBundle\Lib\Traits\TemplateTrait;
/**
* Manager for init ArrayCollection properties in constructor
*
* @author Sławomir Kania <[email protected]>
*/
class InitPropertyManager implements RenderableInterface
{
use TemplateTrait;
* Property
* @Assert\NotNull(message="Init property has to know about property")
* @Assert\Valid()
* @var PropertyManager
private $property = null;
* @return PropertyManager
public function getProperty()
return $this->property;
}
* @param PropertyManager $property
* @return ClassManager
public function setProperty(PropertyManager $property)
$this->property = $property;
return $this;
* Return set of tags used in template
* @return array
public function getTemplateTags()
return [
self::TAG_PROPERTY_NAME,
self::TAG_PROPERTY_TYPE,
];