public function get($number)
    {
        if (ArrayOperations::checkNull([$number])) {
            throw
            new PlivoValidationException(
                'number is mandatory');
        }

        $response = $this->client->fetch(
            $this->uri . $number .'/',
            []
        );

        return new Number(
            $this->client, $response->getContent(),
            $this->pathParams['authId']);
    }
public function get($number)
    {
        if (ArrayOperations::checkNull([$number])) {
            throw
            new PlivoValidationException(
                'number is mandatory');
        }

        $response = $this->client->fetch(
            $this->uri . $number .'/',
            []
        );

        return new Number(
            $this->client, $response->getContent(),
            $this->pathParams['authId']);
    }
public function get ( $ number ) { if ( ArrayOperations :: checkNull ( [ $ number ] ) ) { throw new PlivoValidationException ( 'number is mandatory' ) ; } $ response = $ this -> client -> fetch ( $ this -> uri . $ number . '/' , [ ] ) ; return new Number ( $ this -> client , $ response -> getContent ( ) , $ this -> pathParams [ 'authId' ] ) ; }
Returns a number instance

@param string $number
@return Number
@throws PlivoValidationException
Returns a number instance