Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CommentNotifiableTestDataObject extends DataObject implements TestOnly |
||
13 | { |
||
14 | private static $db = [ |
||
|
|||
15 | "Title" => "Varchar(255)", |
||
16 | "URLSegment" => "Varchar(255)", |
||
17 | ]; |
||
18 | |||
19 | private static $has_one = [ |
||
20 | 'Author' => 'SilverStripe\Security\Member' |
||
21 | ]; |
||
22 | |||
23 | private static $extensions = [ |
||
24 | CommentNotifiable::class, |
||
25 | CommentsExtension::class |
||
26 | ]; |
||
27 | |||
28 | private static $table_name = 'CommentNotifiableTestDataObject'; |
||
29 | |||
30 | public function updateNotificationRecipients(&$list, $comment) |
||
36 | } |
||
37 | } |
||
38 | |||
39 | public function Link($action = false) |
||
47 |