src/Entity/SettingsOffice.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SettingsOffice
  6.  *
  7.  * @ORM\Table(name="settings_office")
  8.  * @ORM\Entity(repositoryClass="App\Repository\SettingsOfficeRepository")
  9.  */
  10. class SettingsOffice
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="office", type="string", length=255)
  24.      */
  25.     private $office;
  26.     /**
  27.      * Get id
  28.      *
  29.      * @return int
  30.      */
  31.     public function getId()
  32.     {
  33.         return $this->id;
  34.     }
  35.     /**
  36.      * Set office
  37.      *
  38.      * @param string $office
  39.      *
  40.      * @return SettingsOffice
  41.      */
  42.     public function setOffice($office)
  43.     {
  44.         $this->office $office;
  45.         return $this;
  46.     }
  47.     /**
  48.      * Get office
  49.      *
  50.      * @return string
  51.      */
  52.     public function getOffice()
  53.     {
  54.         return $this->office;
  55.     }
  56.     /**
  57.      * Permite que Symfony y Twig conviertan el objeto a texto automáticamente.
  58.      *
  59.      * @return string
  60.      */
  61.     public function __toString()
  62.     {
  63.         return $this->office ? (string) $this->office '';
  64.     }
  65. }