| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <?php
- namespace AppBundle\Entity\Product;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\ORM\Mapping as ORM;
- use Dunglas\ApiBundle\Annotation\Iri;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Validator\Constraints as Assert;
- use AppBundle\Entity\Traits\TimestampableEntity;
- use AppBundle\Entity\Traits\CreatorUpdaterEntity;
- /**
- * Produit à facturer induit par une action ou un évènement, en fonction du contexte
- * (et pas suite à un choix de l'Access)
- *
- * @Iri("http://schema.org/FictionalIntangible")
- */
- #[ORM\Entity]
- class FictionalIntangible
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['fictionalintangible'])]
- private $id;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 100, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['fictionalintangible'])]
- private $label;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Assert\Choice(callback: ['AppBundle\Enum\Product\FictionalIntangibleTypeEnum', 'toArray'])]
- #[Groups(['fictionalintangible'])]
- private $type;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Assert\Choice(callback: ['AppBundle\Enum\Billing\PricingLineAdhesionEnum', 'toArray'])]
- #[Groups(['fictionalintangible'])]
- private $pricingLineAdhesion;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Assert\Choice(callback: ['\AppBundle\Enum\Billing\PeriodicityEnum', 'toArray'])]
- #[Groups(['intangible'])]
- private $billingPeriodicity;
- /**
- * Constructor
- */
- public function __construct()
- {
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Sets id.
- *
- * @param int $id
- *
- * @return $this
- */
- public function setId($id)
- {
- $this->id = $id;
- return $this;
- }
- /**
- * Set label
- *
- * @param string $label
- *
- * @return FictionalIntangible
- */
- public function setLabel($label)
- {
- $this->label = $label;
- return $this;
- }
- /**
- * Get label
- *
- * @return string
- */
- public function getLabel()
- {
- return $this->label;
- }
- /**
- * Set type
- *
- * @param string $type
- *
- * @return FictionalIntangible
- */
- public function setType($type)
- {
- $this->type = $type;
- return $this;
- }
- /**
- * Get type
- *
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Set pricingLineAdhesion
- *
- * @param string $pricingLineAdhesion
- *
- * @return FictionalIntangible
- */
- public function setPricingLineAdhesion($pricingLineAdhesion)
- {
- $this->pricingLineAdhesion = $pricingLineAdhesion;
- return $this;
- }
- /**
- * Get pricingLineAdhesion
- *
- * @return string
- */
- public function getPricingLineAdhesion()
- {
- return $this->pricingLineAdhesion;
- }
- /**
- * Set billingPeriodicity
- *
- * @param string $billingPeriodicity
- *
- * @return FictionalIntangible
- */
- public function setBillingPeriodicity($billingPeriodicity)
- {
- $this->billingPeriodicity = $billingPeriodicity;
- return $this;
- }
- /**
- * Get billingPeriodicity
- *
- * @return string
- */
- public function getBillingPeriodicity()
- {
- return $this->billingPeriodicity;
- }
- }
|