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