src/Entity/SonataClassificationTag.php line 21

Open in your IDE?
  1. <?php
  2. /**
  3.  * This file is part of the <name> project.
  4.  *
  5.  * (c) <yourname> <youremail>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace App\Entity;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Sonata\ClassificationBundle\Entity\BaseTag as BaseTag;
  13. /**
  14.  * @ORM\Entity
  15.  * @ORM\Table(name="classification__tag")
  16.  */
  17. class SonataClassificationTag extends BaseTag
  18. {
  19.     /**
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     protected $id;
  25.     /**
  26.      * Get id
  27.      *
  28.      * @return int $id
  29.      */
  30.     public function getId()
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function toString()
  35.     {
  36.         return $this->getName();
  37.     }
  38. }