Knp\Bundle\KnpBundlesBundle\Entity\Bundle::isOwnerOrContributor PHP Méthode

isOwnerOrContributor() public méthode

public isOwnerOrContributor ( Owner $owner ) : boolean
$owner Owner
Résultat boolean
    public function isOwnerOrContributor(Owner $owner)
    {
        if ($this->owner instanceof Developer && $this->owner->isEqualTo($owner)) {
            return true;
        }
        return $this->contributors->contains($owner);
    }