| Total Complexity | 1 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | class CSPViolation extends DataObject |
||
| 9 | { |
||
| 10 | private static $plural_name = 'CSP Violations'; |
||
|
|
|||
| 11 | |||
| 12 | private static $table_name = 'Signify_CSPViolation'; |
||
| 13 | |||
| 14 | private static $db = [ |
||
| 15 | 'ReportedTime' => 'Datetime', |
||
| 16 | 'Disposition' => 'Varchar(7)', |
||
| 17 | 'BlockedURI' => 'Varchar(255)', |
||
| 18 | 'EffectiveDirective' => 'Varchar(255)', |
||
| 19 | 'Violations' => 'Int', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | private static $many_many = [ |
||
| 23 | 'Documents' => CSPDocument::class, |
||
| 24 | ]; |
||
| 25 | |||
| 26 | private static $summary_fields = [ |
||
| 27 | 'ReportedTime' => 'Latest Report', |
||
| 28 | 'Disposition', |
||
| 29 | 'BlockedURI', |
||
| 30 | 'DocumentURIs', |
||
| 31 | 'EffectiveDirective', |
||
| 32 | 'Violations', |
||
| 33 | ]; |
||
| 34 | |||
| 35 | private static $default_sort = 'ReportedTime DESC'; |
||
| 36 | |||
| 37 | public function getDocumentURIs() |
||
| 42 |