public function addTarget($adapter)
    {
        $this->addDefinition(
            'targets',
            is_callable($adapter) ? new CallbackAdapter(null, $adapter) : $adapter
        );

        return $this;
    }
public function addTarget($adapter)
    {
        $this->addDefinition(
            'targets',
            is_callable($adapter) ? new CallbackAdapter(null, $adapter) : $adapter
        );

        return $this;
    }
public function addTarget ( $ adapter ) { $ this -> addDefinition ( 'targets' , is_callable ( $ adapter ) ? new CallbackAdapter ( null , $ adapter ) : $ adapter ) ; return $ this ; }
Adds a target instruction to a procedure.

@param TargetAdapterInterface|callable $adapter Target adapter

@return $this
Adds a target instruction to a procedure .