for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
/**
* /src/Rest/Traits/RestResourceFindOne.php
*
* @author TLe, Tarmo Leppänen <[email protected]>
*/
namespace App\Rest\Traits;
use App\Entity\EntityInterface;
* Trait RestResourceFindOne
* @package App\Rest\Traits
trait RestResourceFindOne
{
* Before lifecycle method for findOne method.
* @param string $id
public function beforeFindOne(string &$id): void
}
* After lifecycle method for findOne method.
* @param null|EntityInterface $entity
public function afterFindOne(string &$id, EntityInterface $entity = null): void