Paperyard
Subjects.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Paperyard\Models\Rule;
4 
5 class Subjects extends Rule
6 {
8  protected $table = 'rule_subjects';
9 
11  protected $fillable = ['foundWords', 'foundCompany', 'fileSubject', 'subjectScore', 'tags', 'isActive'];
12 
14  protected $rules = [
15  'required' => [
16  ['foundWords'],
17  ['fileSubject'],
18  ['subjectScore']
19  ],
20  'regex' => [
21  ['foundWords', parent::TAG_REGEX],
22  ['foundCompany', parent::TAG_REGEX],
23  ['fileSubject', parent::TAG_REGEX],
24  ['tags', parent::TAG_REGEX]
25  ],
26  'integer' => [
27  ['subjectScore']
28  ]
29  ];
30 
32  protected $labels = [
33  'foundWords' => 'Needles',
34  'fileSubject' => 'Subject',
35  'subjectScore' => 'Score',
36  'tags' => 'Tags',
37  'isActive' => 'Status'
38  ];
39 }