1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- /*
- * This file is part of Packagist.
- *
- * (c) Jordi Boggiano <j.boggiano@seld.be>
- * Nils Adermann <naderman@naderman.de>
- *
- * 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 <j.boggiano@seld.be>
- */
- 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;
- }
- }
|