Example #1
0
 /**
  * @return \WoohooLabs\Yang\JsonApi\Schema\ResourceObject[]
  */
 public function includedResources()
 {
     return $this->resources->getIncludedResources();
 }
Example #2
0
 /**
  * @param string $type
  * @param string $id
  * @return \WoohooLabs\Yang\JsonApi\Schema\ResourceObject|null
  */
 public function resourceBy($type, $id)
 {
     return $this->resources->getResource($type, $id);
 }