for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of JSON-API.
*
* (c) Toby Zerner <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tobscure\JsonApi;
class EmptyResource implements ElementInterface
{
/**
* {@inheritdoc}
public function getResources()
return [$this];
}
public function toArray()
return $this->toIdentifier();
public function toIdentifier()
return null;
public function with($relationships)
return $this;
public function fields($fields)