src/Html.php
public function setRouter($Router)
    {
        if (! is_object($Router) || ! $Router instanceof Router) {
            throw new \InvalidArgumentException(
                'The Router Interface must be a valid Router Object'
            );
        }
        $this->Router = $Router;

        return true;
    }
public function setRouter($Router)
    {
        if (! is_object($Router) || ! $Router instanceof Router) {
            throw new \InvalidArgumentException(
                'The Router Interface must be a valid Router Object'
            );
        }
        $this->Router = $Router;

        return true;
    }
public function setRouter ( $ Router ) { if ( ! is_object ( $ Router ) || ! $ Router instanceof Router ) { throw new \ InvalidArgumentException ( 'The Router Interface must be a valid Router Object' ) ; } $ this -> Router = $ Router ; return true ; }
check and set the router interface

@param   Object  Instance of an Router
@return  bool
@throws  \InvalidArgumentException
check and set the router interface