BillingRuleTrait.php 820 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace AppBundle\Entity\Traits;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Dunglas\ApiBundle\Annotation\Iri;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8. * @Iri("http://schema.org/Generic")
  9. */
  10. trait BillingRuleTrait
  11. {
  12. /**
  13. * @var string
  14. *
  15. * @Groups({"accessintangible","educationalprojectintangible"})
  16. */
  17. #[ORM\Column(type: 'text', nullable: true)]
  18. #[Assert\Type(type: 'string')]
  19. private $rule;
  20. /**
  21. * Set rule
  22. *
  23. * @param string $rule
  24. *
  25. * @return $this
  26. */
  27. public function setRule($rule)
  28. {
  29. $this->rule = $rule;
  30. return $this;
  31. }
  32. /**
  33. * Get rule
  34. *
  35. * @return string
  36. */
  37. public function getRule()
  38. {
  39. return $this->rule;
  40. }
  41. }