for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SpareParts\Pillar\Mapper\Annotation;
use Doctrine\Common\Annotations\Annotation\Required;
/**
* @Annotation
* @Target("PROPERTY")
*/
class Column implements IPillarAnnotation
{
* @var string
* @Required()
protected $name;
protected $table;
* @var string|null
protected $customSelect;
* @var bool
protected $deprecated = false;
protected $primary = false;
public function __construct($values)
if (isset($values['value'])) {
$this->name = $values['value'];
}
if (isset($values['name'])) {
$this->name = $values['name'];
if (isset($values['table'])) {
$this->table = $values['table'];
if (isset($values['primary'])) {
$this->primary = $values['primary'];
if (isset($values['deprecated'])) {
$this->deprecated = $values['deprecated'];
if (isset($values['customSelect'])) {
$this->customSelect = $values['customSelect'];
* @return string
public function getName()
return $this->name;
public function getTable()
return $this->table;
* @return bool
public function isPrimary()
return $this->primary;
public function isDeprecated()
return $this->deprecated;
* @return string|null
public function getCustomSelect()
return $this->customSelect;