src/GetFrom.php
public function ad()
    {
        if (func_num_args() === 1) {
            return call_user_func_array([$this, 'adByUrl'], func_get_args());
        }

        if (func_num_args() === 2) {
            return call_user_func_array([$this, 'adById'], func_get_args());
        }

        throw new \InvalidArgumentException('Bad number of argument');
    }
public function ad()
    {
        if (func_num_args() === 1) {
            return call_user_func_array([$this, 'adByUrl'], func_get_args());
        }

        if (func_num_args() === 2) {
            return call_user_func_array([$this, 'adById'], func_get_args());
        }

        throw new \InvalidArgumentException('Bad number of argument');
    }
public function ad ( ) { if ( func_num_args ( ) === 1 ) { return call_user_func_array ( [ $ this , 'adByUrl' ] , func_get_args ( ) ) ; } if ( func_num_args ( ) === 2 ) { return call_user_func_array ( [ $ this , 'adById' ] , func_get_args ( ) ) ; } throw new \ InvalidArgumentException ( 'Bad number of argument' ) ; }
Dynamique method to retrive the data by url OR id and category

@return bool|mixed
Dynamique method to retrive the data by url OR id and category