| 1 | <?php |
||
| 11 | trait CommonTrait |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $objectName |
||
| 15 | * @param string $field |
||
| 16 | * @param \DateTime $olderThan |
||
| 17 | * |
||
| 18 | * @return int |
||
| 19 | */ |
||
| 20 | 2 | protected function removeOlderThan($objectName, $field, \DateTime $olderThan) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param Run|Job|JobTiming $object |
||
| 40 | * @param string $action |
||
| 41 | */ |
||
| 42 | 22 | protected function persist($object, $action = 'persist') |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return ObjectManager |
||
| 51 | */ |
||
| 52 | abstract public function getObjectManager(); |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $objectName |
||
| 56 | */ |
||
| 57 | 1 | public function stopIdGenerator($objectName) |
|
| 61 | |||
| 62 | 1 | public function restoreIdGenerator($objectName) |
|
| 66 | } |
||
| 67 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.