| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait ModelTrait |
||
| 8 | { |
||
| 9 | public static function boot() |
||
| 10 | { |
||
| 11 | parent::boot(); |
||
| 12 | |||
| 13 | $observer = static::getObserverClassName(); |
||
| 14 | |||
| 15 | static::observe(new $observer( |
||
| 16 | App::make('Rennokki\DynamoDb\DynamoDbClientInterface') |
||
| 17 | )); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function getObserverClassName() |
||
| 21 | { |
||
| 22 | return 'Rennokki\DynamoDb\ModelObserver'; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getDynamoDbTableName() |
||
| 28 | } |
||
| 29 | } |
||
| 30 |