for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @author : Korotkov Danila <[email protected]>
* @license https://mit-license.org/ MIT
*/
namespace Creational\Builder;
* Class Director
* @package Creational\Builder
class Master
{
* @var BuilderInterface
protected $builder;
* Master constructor.
* @param BuilderInterface $builder
public function __construct(BuilderInterface $builder)
$this->builder = $builder;
}
* @return AbstractComputer
public function build(): AbstractComputer
return $this->builder->getComputer();
* @return BuilderInterface
public function getBuilder(): BuilderInterface
return $this->builder;