| Total Complexity | 2 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| 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 | public function initialize(array $config) |
||
| 21 | { |
||
| 22 | parent::initialize($config); |
||
| 23 | |||
| 24 | $this->setTable('currencyrates'); |
||
| 25 | $this->setPrimaryKey('id'); |
||
| 26 | |||
| 27 | $this->addBehavior('Timestamp'); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Default validation rules. |
||
| 32 | * |
||
| 33 | * @param \Cake\Validation\Validator $validator Validator instance. |
||
| 34 | * @return \Cake\Validation\Validator |
||
| 35 | */ |
||
| 36 | public function validationDefault(Validator $validator) |
||
| 58 | } |
||
| 59 | } |
||
| 60 |