| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace AppBundle\Entity\Traits;
- use Doctrine\ORM\Mapping as ORM;
- use Dunglas\ApiBundle\Annotation\Iri;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
- * @Iri("http://schema.org/Generic")
- */
- trait BillingRuleTrait
- {
- /**
- * @var string
- *
- * @Groups({"accessintangible","educationalprojectintangible"})
- */
- #[ORM\Column(type: 'text', nullable: true)]
- #[Assert\Type(type: 'string')]
- private $rule;
- /**
- * Set rule
- *
- * @param string $rule
- *
- * @return $this
- */
- public function setRule($rule)
- {
- $this->rule = $rule;
- return $this;
- }
- /**
- * Get rule
- *
- * @return string
- */
- public function getRule()
- {
- return $this->rule;
- }
- }
|