<?php
/**
* This file is part of the <name> project.
*
* (c) <yourname> <youremail>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Sonata\ClassificationBundle\Entity\BaseContext as BaseContext;
/**
* @ORM\Entity
* @ORM\Table(name="classification__context")
*/
class SonataClassificationContext extends BaseContext
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="string")
*/
protected ?string $id;
/**
* Get id
*
* @return string|null $id
*/
public function getId(): ?string
{
return $this->id;
}
public function toString()
{
return $this->getName();
}
}