public function createProcedure($name)
    {
        $definition = array(
            'parent' => $this->context,
            'name' => $name,
            'sources' => array(),
            'workers' => array(),
            'targets' => array(),
            'children' => array(),
        );

        $this->definitions[$name] = $definition;

        $this->context = $name;

        return $this;
    }
public function createProcedure($name)
    {
        $definition = array(
            'parent' => $this->context,
            'name' => $name,
            'sources' => array(),
            'workers' => array(),
            'targets' => array(),
            'children' => array(),
        );

        $this->definitions[$name] = $definition;

        $this->context = $name;

        return $this;
    }
public function createProcedure ( $ name ) { $ definition = array ( 'parent' => $ this -> context , 'name' => $ name , 'sources' => array ( ) , 'workers' => array ( ) , 'targets' => array ( ) , 'children' => array ( ) , ) ; $ this -> definitions [ $ name ] = $ definition ; $ this -> context = $ name ; return $ this ; }
Creates a procedure.

@param string $name Procedure name

@return $this
Creates a procedure .