Total Complexity | 2 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class CurrencyratesTable extends Table |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Initialize method |
||
16 | * |
||
17 | * @param array $config The configuration for the Table. |
||
18 | * @return void |
||
19 | */ |
||
20 | 32 | public function initialize(array $config) |
|
21 | { |
||
22 | 32 | parent::initialize($config); |
|
23 | |||
24 | 32 | $this->setTable('currencyrates'); |
|
25 | 32 | $this->setPrimaryKey('id'); |
|
26 | |||
27 | 32 | $this->addBehavior('Timestamp'); |
|
28 | 32 | } |
|
29 | |||
30 | /** |
||
31 | * Default validation rules. |
||
32 | * |
||
33 | * @param \Cake\Validation\Validator $validator Validator instance. |
||
34 | * @return \Cake\Validation\Validator |
||
35 | */ |
||
36 | 4 | public function validationDefault(Validator $validator) |
|
58 | } |
||
59 | } |
||
60 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.