src/Entity/EquipesPrestataire.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4.  * @author Mehrez Labidi
  5.  */
  6. namespace App\Entity;
  7. use App\Repository\EquipesPrestataireRepository;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use App\Helper\Utils;
  10. /**
  11.  * @ORM\Entity(repositoryClass=EquipesPrestataireRepository::class)
  12.  * @ORM\Table(name="fusacq_dbo.equipes_prestataire")
  13.  * @ORM\HasLifecycleCallbacks()
  14.  */
  15. class EquipesPrestataire {
  16.     public const MODE_EQUIPE_ATTENTE "attente";
  17.     public const MODE_EQUIPE_PUBLIQUE "publique";
  18.     public const MODE_EQUIPE_SUPPRIME "supprime";
  19.     public const MODE_EQUIPE_DEMANDE_PUB "demande_publication";
  20.     /**
  21.      * @var int @ORM\Id
  22.      * @ORM\Column(type="integer",name="id_membre")
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     protected $id_membre;
  26.     /**
  27.      * @var string @ORM\Column(type="integer", nullable=true, name="id_societe_prestataire", options={"default"= null})
  28.      */
  29.     protected $id_societe_prestataire;
  30.     /**
  31.      * @var string @ORM\Column(type="string", nullable=true, name="nom", options={"default"= null})
  32.      */
  33.     protected $nom;
  34.     /**
  35.      * @var string @ORM\Column(type="string", nullable=true, name="prenom", options={"default"= null})
  36.      */
  37.     protected $prenom;
  38.     /**
  39.      * @var string @ORM\Column(type="string", nullable=true, name="fonction", options={"default"= null})
  40.      */
  41.     protected $fonction;
  42.     /**
  43.      * @var string @ORM\Column(type="string", nullable=true, name="parcours", options={"default"= null})
  44.      */
  45.     protected $parcours;
  46.     /**
  47.      * @var string @ORM\Column(type="string", nullable=true, name="resume_parcours", options={"default"= null})
  48.      */
  49.     protected $resume_parcours;
  50.     /**
  51.      * @var string @ORM\Column(type="string", nullable=true, name="photo", options={"default"= null})
  52.      */
  53.     protected $photo;
  54.     /**
  55.      * @var string @ORM\Column(type="string", nullable=true, name="email", options={"default"= null})
  56.      */
  57.     protected $email;
  58.     /**
  59.      * @var string @ORM\Column(type="string", nullable=true, name="mode_equipe", options={"default"= null})
  60.      */
  61.     protected $mode_equipe;
  62.     /**
  63.      * @var string @ORM\Column(type="string", nullable=true, name="deja_publique", options={"default"= null})
  64.      */
  65.     protected $deja_publique;
  66.     /**
  67.      * @var string @ORM\Column(type="string", nullable=true, name="modifie_par_utilisateur", options={"default"= null})
  68.      */
  69.     protected $modifie_par_utilisateur;
  70.     /**
  71.      * @var string @ORM\Column(type="string", nullable=true, name="date_demande_publication", options={"default"= null})
  72.      */
  73.     protected $date_demande_publication;
  74.     /**
  75.      * @var string @ORM\Column(type="string", nullable=true, name="date_parution_initiale", options={"default"= null})
  76.      */
  77.     protected $date_parution_initiale;
  78.     /**
  79.      * @var string @ORM\Column(type="string", nullable=true, name="photo_blob", options={"default"= null})
  80.      */
  81.     protected $photo_blob;
  82.     /**
  83.      * @var string @ORM\Column(type="string", nullable=true, name="reecriture_url", options={"default"= null})
  84.      */
  85.     protected $reecriture_url;
  86.     /**
  87.      * @var string @ORM\Column(type="string", nullable=true, name="reecriture_url_old", options={"default"= null})
  88.      */
  89.     protected $reecriture_url_old;
  90.     /**
  91.      * @var string @ORM\Column(type="string", nullable=true, name="genre", options={"default"= null})
  92.      */
  93.     protected $genre;
  94.     /**
  95.      * @var \DateTimeInterface|null
  96.      * @ORM\Column(type="datetime", nullable=true, name="date_validation_photo")
  97.      */
  98.     protected $date_validation_photo;
  99.     /**
  100.      * @var bool
  101.      * @ORM\Column(type="boolean", name="photo_en_attente_validation", options={"default": false})
  102.      */
  103.     protected $photo_en_attente_validation false;
  104.     /**
  105.      * @var string @ORM\Column(type="string", nullable=true, name="photo_miniature", options={"default"= null})
  106.      */
  107.     protected $photo_miniature;
  108.     /**
  109.      * Magic getter to expose protected properties.
  110.      *
  111.      * @param string $property
  112.      *
  113.      * @return mixed
  114.      */
  115.     public function _get($property) {
  116.         return $this->$property;
  117.     }
  118.     /**
  119.      * Magic setter to save protected properties.
  120.      *
  121.      * @param string $property
  122.      * @param mixed  $value
  123.      */
  124.     public function _set($property$value) {
  125.         $this->$property $value;
  126.     }
  127.     public function getId() {
  128.         return $this->id_membre;
  129.     }
  130.     /**
  131.      * 
  132.      */
  133.     public function __construct() {
  134.         
  135.     }
  136.     /**
  137.      * @ORM\PrePersist
  138.      */
  139.     public function setDefaultValue(): void {
  140.         $this->date_demande_publication date("Ymd");
  141.         $this->reecriture_url $this->prenom "-" $this->nom;
  142.     }
  143. }