* Nils Adermann * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Packagist\WebBundle\Entity; use Composer\Factory; use Composer\IO\NullIO; use Composer\Repository\VcsRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Context\ExecutionContextInterface; use Composer\Repository\Vcs\GitHubDriver; /** * @ORM\Entity(repositoryClass="Packagist\WebBundle\Entity\VendorRepository") * @ORM\Table( * name="vendor", * indexes={ * @ORM\Index(name="verified_idx",columns={"verified"}) * } * ) * @author Jordi Boggiano */ class Vendor { /** * Unique vendor name * * @ORM\Id * @ORM\Column(length=191) */ private $name; /** * @ORM\Column(type="boolean") */ private $verified = false; public function setName(string $name) { $this->name = $name; } public function getName(): string { return $this->name; } public function setVerified(bool $verified) { $this->verified = $verified; } public function getVerified(): bool { return $this->verified; } }