src/Entity/Profile/Type/Model.php line 20

Open in your IDE?
  1. <?php
  2. /*
  3.  * @since 1.0.0
  4.  * @copyright Copyright (C) 2021 ArtMedia. All rights reserved.
  5.  * @website http://artmedia.biz.pl
  6.  * @author Arkadiusz Tobiasz
  7.  * @email kontakt@artmedia.biz.pl
  8.  */
  9. namespace App\Entity\Profile\Type;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. use App\Entity\Profile;
  13. /**
  14.  * @ORM\Entity(repositoryClass="App\Repository\Profile\Type\ModelRepository")
  15.  * @ORM\Table(name="profile_model")
  16.  */
  17. class Model extends Person
  18. {
  19.     public const ETHNICITY_NOT_SPECIFIED 'not_specified';
  20.     public const ETHNICITY_EUROPEAN 'european';
  21.     public const ETHNICITY_ASIAN 'asian';
  22.     public const ETHNICITY_HISPANIC 'hispanic';
  23.     public const ETHNICITY_ARAB 'arab';
  24.     public const ETHNICITY_AFRICAN 'african';
  25.     public const ETHNICITY = [
  26.         self::ETHNICITY_NOT_SPECIFIED,
  27.         self::ETHNICITY_EUROPEAN,
  28.         self::ETHNICITY_ASIAN,
  29.         self::ETHNICITY_HISPANIC,
  30.         self::ETHNICITY_ARAB,
  31.         self::ETHNICITY_AFRICAN,
  32.     ];
  33.     public const EYES_NOT_SPECIFIED 'not_specified';
  34.     public const EYES_BLUE 'blue';
  35.     public const EYES_BROWN 'brown';
  36.     public const EYES_GREY 'grey';
  37.     public const EYES_BLACK 'black';
  38.     public const EYES_GREEN 'green';
  39.     public const EYES = [
  40.         self::EYES_NOT_SPECIFIED,
  41.         self::EYES_BLUE,
  42.         self::EYES_BROWN,
  43.         self::EYES_GREY,
  44.         self::EYES_BLACK,
  45.         self::EYES_GREEN,
  46.     ];
  47.     public const HAIR_COLOUR_NOT_SPECIFIED 'not_specified';
  48.     public const HAIR_COLOUR_BLONDE 'blonde';
  49.     public const HAIR_COLOUR_BROWN 'brown';
  50.     public const HAIR_COLOUR_GREY 'grey';
  51.     public const HAIR_COLOUR_BLACK 'black';
  52.     public const HAIR_COLOUR_RED 'red';
  53.     public const HAIR_COLOUR_COLOURED 'colored';
  54.     public const HAIR_COLOUR = [
  55.         self::HAIR_COLOUR_NOT_SPECIFIED,
  56.         self::HAIR_COLOUR_BLONDE,
  57.         self::HAIR_COLOUR_BROWN,
  58.         self::HAIR_COLOUR_GREY,
  59.         self::HAIR_COLOUR_BLACK,
  60.         self::HAIR_COLOUR_RED,
  61.         self::HAIR_COLOUR_COLOURED,
  62.     ];
  63.     public const HAIR_LENGTH_NOT_SPECIFIED 'not_specified';
  64.     public const HAIR_LENGTH_SHAVED 'shaved';
  65.     public const HAIR_LENGTH_SHORT 'short';
  66.     public const HAIR_LENGTH_NORMAL 'normal';
  67.     public const HAIR_LENGTH_LONG 'long';
  68.     public const HAIR_LENGTH_VERY_LONG 'very_long';
  69.     public const HAIR_LENGTH = [
  70.         self::HAIR_LENGTH_NOT_SPECIFIED,
  71.         self::HAIR_LENGTH_SHAVED,
  72.         self::HAIR_LENGTH_SHORT,
  73.         self::HAIR_LENGTH_NORMAL,
  74.         self::HAIR_LENGTH_LONG,
  75.         self::HAIR_LENGTH_VERY_LONG,
  76.     ];
  77.     public const TATTOOS_NOT_SPECIFIED 'not_specified';
  78.     public const TATTOOS_NONE 'none';
  79.     public const TATTOOS_SMALL 'small';
  80.     public const TATTOOS_QUITE_INKED 'quite_inked';
  81.     public const TATTOOS = [
  82.         self::TATTOOS_NOT_SPECIFIED,
  83.         self::TATTOOS_NONE,
  84.         self::TATTOOS_SMALL,
  85.         self::TATTOOS_QUITE_INKED,
  86.     ];
  87.     /**
  88.      * @ORM\Column(type="boolean")
  89.      */
  90.     private $ownLocation false;
  91.     /**
  92.      * @var string
  93.      *
  94.      * @ORM\Column(type="string", columnDefinition="enum('not_specified', 'shaved', 'short', 'normal', 'long', 'very_long')")
  95.      */
  96.     private $hairLength;
  97.     /**
  98.      * @var string
  99.      *
  100.      * @ORM\Column(type="string", columnDefinition="enum('not_specified', 'none', 'small', 'very_inked')")
  101.      */
  102.     private $tattoos;
  103.     /**
  104.      * @var string
  105.      *
  106.      * @ORM\Column(type="string", columnDefinition="enum('not_specified', 'blonde', 'brown', 'black', 'grey', 'red', 'colored')")
  107.      */
  108.     private $hairColor;
  109.     /**
  110.      * @var string
  111.      *
  112.      * @ORM\Column(type="string", columnDefinition="enum('not_specified', 'blue', 'brown', 'black', 'grey', 'green')")
  113.      */
  114.     private $eyes;
  115.     /**
  116.      * @var string
  117.      *
  118.      * @ORM\Column(type="string", columnDefinition="enum('not_specified', 'european', 'asian', 'hispanic', 'arab', 'african')")
  119.      */
  120.     private $ethnicity;
  121.     /**
  122.      * @ORM\Column(type="integer", nullable=true)
  123.      */
  124.     private $height;
  125.     /**
  126.      * @ORM\Column(type="integer", nullable=true)
  127.      */
  128.     private $weight;
  129.     /**
  130.      * @ORM\Column(type="integer", nullable=true)
  131.      */
  132.     private $hips;
  133.     /**
  134.      * @ORM\Column(type="integer", nullable=true)
  135.      */
  136.     private $waist;
  137.     /**
  138.      * @ORM\Column(type="integer", nullable=true)
  139.      */
  140.     private $chest;
  141.     public function __construct()
  142.     {
  143.         parent::__construct();
  144.         $this->ownLocation false;
  145.         $this->ethnicity self::ETHNICITY_NOT_SPECIFIED;
  146.         $this->eyes self::EYES_NOT_SPECIFIED;
  147.         $this->hairColor self::HAIR_COLOUR_NOT_SPECIFIED;
  148.         $this->hairLength self::HAIR_LENGTH_NOT_SPECIFIED;
  149.         $this->tattoos self::TATTOOS_NOT_SPECIFIED;
  150.     }
  151.     public function setTattoos(?string $tattoos): self
  152.     {
  153.         $this->tattoos $tattoos;
  154.         return $this;
  155.     }
  156.     public function getTattoos(): string
  157.     {
  158.         return $this->tattoos;
  159.     }
  160.     
  161.     public function getHairLength(): string
  162.     {
  163.         return $this->hairLength;
  164.     }
  165.     public function setHairLength(?string $hairLength): self
  166.     {
  167.         $this->hairLength $hairLength;
  168.         return $this;
  169.     }
  170.     public function getHairColor(): string
  171.     {
  172.         return $this->hairColor;
  173.     }
  174.     public function setHairColor(?string $hairColor): self
  175.     {
  176.         $this->hairColor $hairColor;
  177.         return $this;
  178.     }
  179.     public function getEyes(): string
  180.     {
  181.         return $this->eyes;
  182.     }
  183.     public function setEyes(?string $eyes): self
  184.     {
  185.         $this->eyes $eyes;
  186.         return $this;
  187.     }
  188.     public function getChest(): ?int
  189.     {
  190.         return $this->chest;
  191.     }
  192.     public function setChest(?int $chest): self
  193.     {
  194.         $this->chest $chest;
  195.         return $this;
  196.     }
  197.     public function getWaist(): ?int
  198.     {
  199.         return $this->waist;
  200.     }
  201.     public function setWaist(?int $waist): self
  202.     {
  203.         $this->waist $waist;
  204.         return $this;
  205.     }
  206.     public function getHips(): ?int
  207.     {
  208.         return $this->hips;
  209.     }
  210.     public function setHips(?int $hips): self
  211.     {
  212.         $this->hips $hips;
  213.         return $this;
  214.     }
  215.     public function getWeight(): ?int
  216.     {
  217.         return $this->weight;
  218.     }
  219.     public function setWeight(?int $weight): self
  220.     {
  221.         $this->weight $weight;
  222.         return $this;
  223.     }
  224.     public function getHeight(): ?int
  225.     {
  226.         return $this->height;
  227.     }
  228.     public function setHeight(?int $height): self
  229.     {
  230.         $this->height $height;
  231.         return $this;
  232.     }
  233.     public function getEthnicity(): string
  234.     {
  235.         return $this->ethnicity;
  236.     }
  237.     public function setEthnicity(?string $ethnicity): self
  238.     {
  239.         $this->ethnicity $ethnicity;
  240.         return $this;
  241.     }
  242.     public function getOwnLocation(): bool
  243.     {
  244.         return $this->ownLocation;
  245.     }
  246.     public function setOwnLocation(?bool $ownLocation): self
  247.     {
  248.         $this->ownLocation $ownLocation;
  249.         return $this;
  250.     }
  251.     public function getType(): string
  252.     {
  253.         return Profile::TYPE_MODEL;
  254.     }
  255. }