CRUDService
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
wmc 0
lcom 0
cbo 5

1 Method

Rating   Name   Duplication   Size   Complexity  
prePersistEntity() 0 1 ?
1
<?php
2
3
namespace Bludata\Lumen\Services;
4
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);
0 ignored issues
show
Documentation introduced by
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

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.

Loading history...
Coding Style introduced by
This line exceeds maximum limit of 80 characters; contains 97 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
13
}
14