src/Entity/GeoEdge/Agency.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GeoEdge;
  3. use App\Repository\GeoEdge\AgencyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  *  Agency entity
  7.  *
  8.  * @ORM\Entity(repositoryClass=AgencyRepository::class, readOnly=true)
  9.  * @ORM\Table(name="openx.ox_agency")
  10.  */
  11. class Agency
  12. {
  13.     /**
  14.      * The id
  15.      *
  16.      * @ORM\Id
  17.      * @ORM\Column(name="agencyid", type="integer")
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * The name of the agency
  23.      *
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="name", type="string", length=255)
  27.      */
  28.     private string $name;
  29.     /**
  30.      * Active
  31.      *
  32.      * @var bool
  33.      *
  34.      * @ORM\Column(name="active", type="boolean", options={"default" : 0})
  35.      *
  36.      */
  37.     private bool $active false;
  38.     /**
  39.      * @return int
  40.      */
  41.     public function getId(): int
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * @return string
  47.      */
  48.     public function getName(): string
  49.     {
  50.         return $this->name;
  51.     }
  52.     /**
  53.      * @param string $name
  54.      */
  55.     public function setName(string $name): void
  56.     {
  57.         $this->name $name;
  58.     }
  59.     /**
  60.      * @return bool
  61.      */
  62.     public function isActive(): bool
  63.     {
  64.         return $this->active;
  65.     }
  66.     /**
  67.      * @param bool $active
  68.      */
  69.     public function setActive(bool $active): void
  70.     {
  71.         $this->active $active;
  72.     }
  73.     /**
  74.      * Constructor
  75.      */
  76.     public function __construct()
  77.     {
  78.     }
  79. }