public function get($id=NULL) 
    {
      if (!$id) {
        if (!isset($this->id)) {
          $url = URIResource::Make($this->path);
        } else {
          $url = URIResource::Make($this->path, array($this->id));
        }

        $data = new DataPacket($this->client->get($url));
      } else { 
        $url = URIResource::Make($this->path, array($id));
        $data = new DataPacket($this->client->get($url));
      }

      return Constructor::Make($this, $data->get());
    }
public function get($id=NULL) 
    {
      if (!$id) {
        if (!isset($this->id)) {
          $url = URIResource::Make($this->path);
        } else {
          $url = URIResource::Make($this->path, array($this->id));
        }

        $data = new DataPacket($this->client->get($url));
      } else { 
        $url = URIResource::Make($this->path, array($id));
        $data = new DataPacket($this->client->get($url));
      }

      return Constructor::Make($this, $data->get());
    }
public function get ( $ id = NULL ) { if ( ! $ id ) { if ( ! isset ( $ this -> id ) ) { $ url = URIResource :: Make ( $ this -> path ) ; } else { $ url = URIResource :: Make ( $ this -> path , array ( $ this -> id ) ) ; } $ data = new DataPacket ( $ this -> client -> get ( $ url ) ) ; } else { $ url = URIResource :: Make ( $ this -> path , array ( $ id ) ) ; $ data = new DataPacket ( $ this -> client -> get ( $ url ) ) ; } return Constructor :: Make ( $ this , $ data -> get ( ) ) ; }
Public API get, this will
call the get function on
the loaded endpoint, optionally
add another id if specified


@param id: id to load
Public API get this will call the get function on the loaded endpoint optionally add another id if specified