AttachmentsTable::initialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
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): void
15
    {
16
        parent::initialize($config);
17
18
        $this->setTable('attachments');
19
        $this->addBehavior('Timestamp');
20
        $this->setPrimaryKey('id');
21
    }
22
}
23