Nelmio\Alice\Generator\GenerationContext::setToSecondPass PHP Method

setToSecondPass() public method

public setToSecondPass ( )
    public function setToSecondPass()
    {
        $this->isFirstPass = false;
    }

Usage Example

Example #1
0
 public function testAccessors()
 {
     $context = new GenerationContext();
     $this->assertTrue($context->isFirstPass());
     $this->assertFalse($context->needsCompleteGeneration());
     $context->setToSecondPass();
     $this->assertFalse($context->isFirstPass());
     $this->assertFalse($context->needsCompleteGeneration());
     $context->markAsNeedsCompleteGeneration();
     $this->assertFalse($context->isFirstPass());
     $this->assertTrue($context->needsCompleteGeneration());
     $context->unmarkAsNeedsCompleteGeneration();
     $this->assertFalse($context->isFirstPass());
     $this->assertFalse($context->needsCompleteGeneration());
 }
All Usage Examples Of Nelmio\Alice\Generator\GenerationContext::setToSecondPass