src/Entity/Servicio.php line 18
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- use Symfony\Component\Validator\Constraints as Assert;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
- /**
- * Servicio
- *
- * @ORM\Table(name="servicio")
- * @ORM\Entity
- */
- class Servicio implements TranslatableInterface
- {
- use TranslatableTrait;
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="altBanner", type="string", length=255, nullable=true)
- *
- */
- private $altBanner;
- /**
- * @var string
- *
- * @ORM\Column(name="alt", type="string", length=255, nullable=true)
- */
- private $alt;
- /**
- * @var string
- *
- * @ORM\Column(name="icono", type="string", length=255,nullable=true)
- */
- private $icono;
- /**
- * @ORM\ManyToMany(targetEntity="Oficina", mappedBy="servicios")
- */
- private $oficinas;
- public function __call($method, $args)
- {
- //return $this->proxyCurrentLocaleTranslation($method, $arguments);
- if (!method_exists(self::getTranslationEntityClass(), $method)) {
- $method = 'get'. ucfirst($method);
- }
- return $this->proxyCurrentLocaleTranslation($method, $args);
- }
- public function __construct() {
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set icono
- *
- * @param string $icono
- * @return Servicio
- */
- public function setIcono($icono)
- {
- $this->icono = $icono;
- return $this;
- }
- /**
- * Get icono
- *
- * @return string
- */
- public function getIcono()
- {
- return $this->icono;
- }
- public function __toString(){
- return $this->getTexto();
- }
- /**
- * Get alt
- *
- * @return string
- */
- public function getAlt(){
- return $this->alt;
- }
- /**
- * Set alt
- * @param string $alt
- * @return Servicio
- */
- public function setAlt($alt){
- $this->alt= $alt;
- return $this;
- }
- /**
- * Get altBanner
- *
- * @return string
- */
- public function getAltBanner(){
- return $this->altBanner;
- }
- /**
- * Set altBanner
- * @param string $altBanner
- * @return DivisaIdioma
- */
- public function setAltBanner($altBanner){
- $this->altBanner = $altBanner;
- return $this;
- }
- }