123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace OwnerVoterBundle\Entity\Traits;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface;
- use Symfony\Component\Validator\Constraints as Assert;
- trait OwnerTrait
- {
- /**
- * @var string $owner Contiene el nombre del propietario.
- *
- * @ORM\Column(type="string", length=128, nullable=false)
- */
- private $owner;
- /**
- * @return string Retorna el nombre del propietario.
- */
- public function getOwner()
- {
- return $this->owner;
- }
- /**
- * @param string $owner Contiene el nombre del propietario.
- *
- * @return $this Retorna el objeto.
- */
- public function setOwner($owner = null)
- {
- $this->owner = $owner;
- return $this;
- }
- }
|