12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace OwnerVoterBundle\Entity\Traits;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Validator\Constraints as Assert;
- trait OwnerVoterTrait
- {
- /**
- * @var string $owner
- *
- * @ORM\Column(type="string", length=128, nullable=false)
- *
- * @Assert\NotBlank(
- * payload={"field"="owner"}
- * )
- */
- private $owner;
- /**
- * @return string
- */
- public function getOwner()
- {
- return $this->owner;
- }
- /**
- * @param string $owner
- *
- * @return $this
- */
- public function setOwner($owner = null)
- {
- $this->owner = $owner;
- return $this;
- }
- }
|