1 | <?php |
||
5 | abstract class CRUDService extends BaseService |
||
6 | { |
||
7 | use \Bludata\Lumen\Traits\Services\CreateTrait; |
||
8 | use \Bludata\Lumen\Traits\Services\ReadTrait; |
||
9 | use \Bludata\Lumen\Traits\Services\UpdateTrait; |
||
10 | use \Bludata\Lumen\Traits\Services\DeleteTrait; |
||
11 | |||
12 | abstract public function prePersistEntity(\Bludata\Doctrine\ORM\Entities\BaseEntity $entity); |
||
13 | } |
||
14 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.