for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BitrixToolkit\BitrixEntityMapper\Annotation\Property;
use Doctrine\Common\Annotations\Annotation\Enum;
use Doctrine\Common\Annotations\Annotation\Required;
use Doctrine\Common\Annotations\Annotation\Target;
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Property extends AbstractPropertyAnnotation implements PropertyAnnotationInterface
{
* @var string
* @Required
protected $code;
* @Enum({"string", "boolean", "integer", "float", "datetime", "file", "entity"})
protected $type;
protected $name;
* @var bool
protected $multiple;
protected $primaryKey;
protected $entity;
public function __construct(array $values)
$this->code = isset($values['code']) ? $values['code'] : null;
$this->type = isset($values['type']) ? $values['type'] : null;
$this->name = isset($values['name']) ? $values['name'] : null;
$this->multiple = isset($values['multiple']) ? $values['multiple'] : null;
$this->primaryKey = isset($values['primaryKey']) ? (bool)$values['primaryKey'] : false;
$this->entity = isset($values['entity']) ? $values['entity'] : null;
}
* @return bool|null
public function isMultiple()
return $this->multiple;