src/Plugin/Stub/Method.php
public function andRun()
    {
        if ($this->_returns) {
            throw new Exception("Some return value(s) has already been set.");
        }
        $closures = func_get_args();
        foreach ($closures as $closure) {
            if (!is_callable($closure)) {
                throw new Exception("The passed parameter is not callable.");
            }
        }
        $this->_closures = $closures;
    }
public function andRun()
    {
        if ($this->_returns) {
            throw new Exception("Some return value(s) has already been set.");
        }
        $closures = func_get_args();
        foreach ($closures as $closure) {
            if (!is_callable($closure)) {
                throw new Exception("The passed parameter is not callable.");
            }
        }
        $this->_closures = $closures;
    }
public function andRun ( ) { if ( $ this -> _returns ) { throw new Exception ( "Some return value(s) has already been set." ) ; } $ closures = func_get_args ( ) ; foreach ( $ closures as $ closure ) { if ( ! is_callable ( $ closure ) ) { throw new Exception ( "The passed parameter is not callable." ) ; } } $ this -> _closures = $ closures ; }
Set the stub logic.
Set the stub logic .