<?php
declare(strict_types=1);
/**
* @author Mehrez Labidi
*/
namespace App\Entity;
use App\Repository\EquipesPrestataireRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Helper\Utils;
/**
* @ORM\Entity(repositoryClass=EquipesPrestataireRepository::class)
* @ORM\Table(name="fusacq_dbo.equipes_prestataire")
* @ORM\HasLifecycleCallbacks()
*/
class EquipesPrestataire {
public const MODE_EQUIPE_ATTENTE = "attente";
public const MODE_EQUIPE_PUBLIQUE = "publique";
public const MODE_EQUIPE_SUPPRIME = "supprime";
public const MODE_EQUIPE_DEMANDE_PUB = "demande_publication";
/**
* @var int @ORM\Id
* @ORM\Column(type="integer",name="id_membre")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id_membre;
/**
* @var string @ORM\Column(type="integer", nullable=true, name="id_societe_prestataire", options={"default"= null})
*/
protected $id_societe_prestataire;
/**
* @var string @ORM\Column(type="string", nullable=true, name="nom", options={"default"= null})
*/
protected $nom;
/**
* @var string @ORM\Column(type="string", nullable=true, name="prenom", options={"default"= null})
*/
protected $prenom;
/**
* @var string @ORM\Column(type="string", nullable=true, name="fonction", options={"default"= null})
*/
protected $fonction;
/**
* @var string @ORM\Column(type="string", nullable=true, name="parcours", options={"default"= null})
*/
protected $parcours;
/**
* @var string @ORM\Column(type="string", nullable=true, name="resume_parcours", options={"default"= null})
*/
protected $resume_parcours;
/**
* @var string @ORM\Column(type="string", nullable=true, name="photo", options={"default"= null})
*/
protected $photo;
/**
* @var string @ORM\Column(type="string", nullable=true, name="email", options={"default"= null})
*/
protected $email;
/**
* @var string @ORM\Column(type="string", nullable=true, name="mode_equipe", options={"default"= null})
*/
protected $mode_equipe;
/**
* @var string @ORM\Column(type="string", nullable=true, name="deja_publique", options={"default"= null})
*/
protected $deja_publique;
/**
* @var string @ORM\Column(type="string", nullable=true, name="modifie_par_utilisateur", options={"default"= null})
*/
protected $modifie_par_utilisateur;
/**
* @var string @ORM\Column(type="string", nullable=true, name="date_demande_publication", options={"default"= null})
*/
protected $date_demande_publication;
/**
* @var string @ORM\Column(type="string", nullable=true, name="date_parution_initiale", options={"default"= null})
*/
protected $date_parution_initiale;
/**
* @var string @ORM\Column(type="string", nullable=true, name="photo_blob", options={"default"= null})
*/
protected $photo_blob;
/**
* @var string @ORM\Column(type="string", nullable=true, name="reecriture_url", options={"default"= null})
*/
protected $reecriture_url;
/**
* @var string @ORM\Column(type="string", nullable=true, name="reecriture_url_old", options={"default"= null})
*/
protected $reecriture_url_old;
/**
* @var string @ORM\Column(type="string", nullable=true, name="genre", options={"default"= null})
*/
protected $genre;
/**
* @var \DateTimeInterface|null
* @ORM\Column(type="datetime", nullable=true, name="date_validation_photo")
*/
protected $date_validation_photo;
/**
* @var bool
* @ORM\Column(type="boolean", name="photo_en_attente_validation", options={"default": false})
*/
protected $photo_en_attente_validation = false;
/**
* @var string @ORM\Column(type="string", nullable=true, name="photo_miniature", options={"default"= null})
*/
protected $photo_miniature;
/**
* Magic getter to expose protected properties.
*
* @param string $property
*
* @return mixed
*/
public function _get($property) {
return $this->$property;
}
/**
* Magic setter to save protected properties.
*
* @param string $property
* @param mixed $value
*/
public function _set($property, $value) {
$this->$property = $value;
}
public function getId() {
return $this->id_membre;
}
/**
*
*/
public function __construct() {
}
/**
* @ORM\PrePersist
*/
public function setDefaultValue(): void {
$this->date_demande_publication = date("Ymd");
$this->reecriture_url = $this->prenom . "-" . $this->nom;
}
}