public function get($profileId, array $parameters = [])
    {
        if($profileId === 'me') {
            return $this->getCurrent($parameters);
        }

        return $this->rest_read($profileId, $parameters);
    }
public function get($profileId, array $parameters = [])
    {
        if($profileId === 'me') {
            return $this->getCurrent($parameters);
        }

        return $this->rest_read($profileId, $parameters);
    }
public function get ( $ profileId , array $ parameters = [ ] ) { if ( $ profileId === 'me' ) { return $ this -> getCurrent ( $ parameters ) ; } return $ this -> rest_read ( $ profileId , $ parameters ) ; }
Retrieve a Profile from Mollie.

Will throw an ApiException if the profile id is invalid or the resource cannot be found.

@param string $profileId
@param array $parameters

@return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Profile
@throws ApiException
Retrieve a Profile from Mollie .