OwnerTrait.php 782 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace OwnerVoterBundle\Entity\Traits;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. trait OwnerTrait
  7. {
  8. /**
  9. * @var string $owner Contiene el nombre del propietario.
  10. *
  11. * @ORM\Column(type="string", length=128, nullable=false)
  12. */
  13. private $owner;
  14. /**
  15. * @return string Retorna el nombre del propietario.
  16. */
  17. public function getOwner()
  18. {
  19. return $this->owner;
  20. }
  21. /**
  22. * @param string $owner Contiene el nombre del propietario.
  23. *
  24. * @return $this Retorna el objeto.
  25. */
  26. public function setOwner($owner = null)
  27. {
  28. $this->owner = $owner;
  29. return $this;
  30. }
  31. }