Knp\Bundle\KnpBundlesBundle\Git\Repo::getBundleEntity PHP Method

getBundleEntity() public method

Get entity
public getBundleEntity ( ) : Bundle
return Knp\Bundle\KnpBundlesBundle\Entity\Bundle
    public function getBundleEntity()
    {
        return $this->entity;
    }

Usage Example

示例#1
0
 /**
  * {@inheritDoc}
  */
 public function matches(Repo $repo)
 {
     $name = $repo->getBundleEntity()->getName();
     return (bool) preg_match($this->pattern, $name);
 }