<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SettingsOffice
*
* @ORM\Table(name="settings_office")
* @ORM\Entity(repositoryClass="App\Repository\SettingsOfficeRepository")
*/
class SettingsOffice
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="office", type="string", length=255)
*/
private $office;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set office
*
* @param string $office
*
* @return SettingsOffice
*/
public function setOffice($office)
{
$this->office = $office;
return $this;
}
/**
* Get office
*
* @return string
*/
public function getOffice()
{
return $this->office;
}
/**
* Permite que Symfony y Twig conviertan el objeto a texto automáticamente.
*
* @return string
*/
public function __toString()
{
return $this->office ? (string) $this->office : '';
}
}