lib/Sirel/SelectManager.php
protected function getLastJoinSource()
    {
        $lastJoin = current(array_slice($this->nodes->source->right, -1, 1));

        if (!$lastJoin instanceof Join) {
            throw new UnexpectedValueException(
                "You are not in a Join Operation. Call join() first"
            );
        }

        return $lastJoin;
    }
protected function getLastJoinSource()
    {
        $lastJoin = current(array_slice($this->nodes->source->right, -1, 1));

        if (!$lastJoin instanceof Join) {
            throw new UnexpectedValueException(
                "You are not in a Join Operation. Call join() first"
            );
        }

        return $lastJoin;
    }
protected function getLastJoinSource ( ) { $ lastJoin = current ( array_slice ( $ this -> nodes -> source -> right , - 1 , 1 ) ) ; if ( ! $ lastJoin instanceof Join ) { throw new UnexpectedValueException ( "You are not in a Join Operation. Call join() first" ) ; } return $ lastJoin ; }
Returns the last Join Node

@throws UnexpectedValueException If no Join Node was found
@return Join
Returns the last Join Node