Knp\Bundle\KnpBundlesBundle\Entity\Bundle::isInitialized PHP Method

isInitialized() public method

public isInitialized ( )
    public function isInitialized()
    {
        // Using the fact that a repo should have at least one declared fork:
        // itself
        return $this->nbForks > 0;
    }

Usage Example

Example #1
0
 public function testIsInitializedFalse()
 {
     $bundle = new Bundle('knplabs/KnpMenuBundle');
     $bundle->setNbForks(1);
     $this->assertTrue($bundle->isInitialized());
 }