Completed
Push — master ( 9c2c26...b2799c )
by satoru
12s
created

AttachmentsTable::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
namespace ContentsFile\Model\Table;
3
4
use Cake\ORM\Table;
5
class AttachmentsTable extends Table
6
{
7
8
    /**
9
     * Initialize method
10
     *
11
     * @param array $config The configuration for the Table.
12
     * @return void
13
     */
14
    public function initialize(array $config)
15
    {
16
        parent::initialize($config);
17
18
        $this->table('attachments');
0 ignored issues
show
Deprecated Code introduced by
The method Cake\ORM\Table::table() has been deprecated with message: 3.4.0 Use setTable()/getTable() instead.

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
19
        $this->addBehavior('Timestamp');
20
        $this->primaryKey('id');
0 ignored issues
show
Deprecated Code introduced by
The method Cake\ORM\Table::primaryKey() has been deprecated with message: 3.4.0 Use setPrimaryKey()/getPrimaryKey() instead.

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
21
    }
22
}
23