Factory/PipelineFactory.php
public function buildName($pipeline, $configuration)
    {
        $name = is_array($configuration) && array_key_exists("name", $configuration) ? $configuration["name"] : null;
        if (empty($name)) {
            throw new InvalidConfigurationException("Missing pipeline name");
        }
        $pipeline->setName($name);
    }
public function buildName($pipeline, $configuration)
    {
        $name = is_array($configuration) && array_key_exists("name", $configuration) ? $configuration["name"] : null;
        if (empty($name)) {
            throw new InvalidConfigurationException("Missing pipeline name");
        }
        $pipeline->setName($name);
    }
public function buildName ( $ pipeline , $ configuration ) { $ name = is_array ( $ configuration ) && array_key_exists ( "name" , $ configuration ) ? $ configuration [ "name" ] : null ; if ( empty ( $ name ) ) { throw new InvalidConfigurationException ( "Missing pipeline name" ) ; } $ pipeline -> setName ( $ name ) ; }
Set the pipeline name. Empty name will throw an exception
@param Pipeline $pipeline
@param array $configuration
@throws InvalidConfigurationException
Set the pipeline name . Empty name will throw an exception