for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* this file is part of pipelines */
namespace Ktomk\Pipelines\Runner;
use Ktomk\Pipelines\Utility\Options;
/**
* Runner options parameter object
*/
class RunOpts
{
* @var string
private $prefix;
* @var Options
private $options;
* Static factory method
*
* @param string $prefix [optional]
* @return RunOpts
public static function create($prefix = null)
return new self($prefix, Options::create());
}
* RunOpts constructor.
* NOTE: All run options are optional by design (pass NULL).
* @param string $prefix
* @param null|Options $options
public function __construct($prefix = null, Options $options = null)
$this->prefix = $prefix;
$this->options = $options;
public function setPrefix($prefix)
* The prefix is used when creating containers for the container name.
* See --prefix option.
* @return string
public function getPrefix()
return $this->prefix;
* @param string $name
* @return null|string
public function getOption($name)
if (!isset($this->options)) {
return null;
return $this->options->get($name);