src/Entity/TipoDocumento.php line 17
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
- /**
- * Alerta
- *
- * @ORM\Table(name="tipo_documento")
- * @ORM\Entity
- */
- class TipoDocumento implements TranslatableInterface
- {
- use TranslatableTrait;
- 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);
- }
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @ORM\Column(type="string")
- */
- private $codigo;
- public function __toString()
- {
- return $this->getNombre();
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set codigo
- *
- * @param string $codigo
- * @return TipoDocumento
- */
- public function setCodigo($codigo)
- {
- $this->codigo = $codigo;
- return $this;
- }
- /**
- * Get codigo
- *
- * @return integer
- */
- public function getCodigo()
- {
- return $this->codigo;
- }
- }