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 FetchFromSharedInstancePoolBuilder
* @package Net\Bazzline\Component\Locator\MethodBodyBuilder
class FetchFromSharedInstancePoolBuilder extends AbstractMethodBodyBuilder
{
* @param BlockGenerator $body
* @return BlockGenerator
* @throws RuntimeException
public function build(BlockGenerator $body)
$this->assertMandatoryProperties();
$body
->add('return $this->fetchFromSharedInstancePool(\'' . $this->instance->getClassName() . '\');');
return $body;
}