| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class LogRepository extends AbstractRepository implements \Ecodev\Felix\Repository\LogRepository, LimitedAccessSubQuery |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Log message to be used when a door is opened. |
||
| 19 | */ |
||
| 20 | final public const DOOR_OPENED = 'door opened: '; |
||
| 21 | /** |
||
| 22 | * Log message to be used when the datatrans webhook starts. |
||
| 23 | */ |
||
| 24 | final public const DATATRANS_WEBHOOK_BEGIN = 'datatrans webhook begin'; |
||
| 25 | /** |
||
| 26 | * Log message to be used when the datatrans webhook finishes. |
||
| 27 | */ |
||
| 28 | final public const DATATRANS_WEBHOOK_END = 'datatrans webhook end'; |
||
| 29 | |||
| 30 | use \Ecodev\Felix\Repository\Traits\LogRepository; |
||
|
|
|||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns pure SQL to get ID of all objects that are accessible to given user. |
||
| 34 | */ |
||
| 35 | public function getAccessibleSubQuery(?\Ecodev\Felix\Model\User $user): string |
||
| 54 |