Example #1
0
 /**
  * Returns the path to the resource
  *
  * @return string
  */
 public function path()
 {
     return str_replace(':parent_path', $this->parent->path(), self::$path) . '/' . $this->id();
 }
 /**
  * Return the API path for the query
  *
  * @return void
  */
 protected function path()
 {
     $class = static::$resourceClass;
     return str_replace(':parent_path', $this->parent->path(), $class::$path);
 }