for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author stev leibelt <[email protected]>
* @since 2014-06-22
*/
namespace Net\Bazzline\Component\Locator\MethodBodyBuilder;
use Net\Bazzline\Component\CodeGenerator\BlockGenerator;
* Class FetchFromFactoryInstancePoolBuilder
* @package Net\Bazzline\Component\Locator\MethodBodyBuilder
class FetchFromFactoryInstancePoolBuilder extends AbstractMethodBodyBuilder
{
* @param BlockGenerator $body
* @return BlockGenerator
* @throws RuntimeException
public function build(BlockGenerator $body)
$this->assertMandatoryProperties();
$body
->add('return $this->fetchFromFactoryInstancePool(\'' . $this->instance->getClassName() . '\')->create();');
return $body;
}