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 ComputerBuilder
* @package Creational\Builder
class DesktopBuilder implements BuilderInterface
{
* @var array
protected $params;
* @param string $key
* @param $value
* @return $this
public function addParam(string $key, $value): BuilderInterface
$this->params[$key] = $value;
return $this;
}
* @return AbstractComputer
public function getComputer(): AbstractComputer
return new Desktop($this->params);