for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BitrixToolkit\BitrixEntityMapper\Annotation\Entity;
use Doctrine\Common\Annotations\Annotation\Required;
use Doctrine\Common\Annotations\Annotation\Target;
/**
* @Annotation
* @Target("CLASS")
*/
final class InfoBlock
{
* @var string
* @Required
protected $type;
protected $code;
protected $name;
* InfoBlock constructor.
* @param array $values
public function __construct(array $values)
$this->type = isset($values['type']) ? $values['type'] : null;
$this->code = isset($values['code']) ? $values['code'] : null;
$this->name = isset($values['name']) ? $values['name'] : null;
}
* @return string
public function getType()
return $this->type;
public function getCode()
return $this->code;
public function getName()
return $this->name;