Completed
Pull Request — master (#35)
by
unknown
03:34
created

QueuedTasksFixture   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 23
dl 0
loc 44
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
1
<?php
2
namespace Queue\Test\Fixture;
3
4
use Cake\TestSuite\Fixture\TestFixture;
5
6
/**
7
 * QueuedTasksFixture
8
 */
9
class QueuedTasksFixture extends TestFixture
10
{
11
    /**
12
     * Fields
13
     *
14
     * @var array
15
     */
16
    // @codingStandardsIgnoreStart
17
    public $fields = [
18
        'id' => ['type' => 'integer', 'length' => 10, 'unsigned' => true, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
19
        'task' => ['type' => 'string', 'length' => 255, 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null, 'fixed' => null],
20
        'data' => ['type' => 'text', 'length' => 16777215, 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null],
21
        'not_before' => ['type' => 'timestamp', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
22
        'fetched' => ['type' => 'timestamp', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
23
        'completed' => ['type' => 'timestamp', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
24
        'failed_count' => ['type' => 'integer', 'length' => 10, 'unsigned' => true, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null, 'autoIncrement' => null],
25
        'failure_message' => ['type' => 'text', 'length' => null, 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null],
26
        'worker_key' => ['type' => 'string', 'fixed' => true, 'length' => 40, 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'precision' => null],
27
        'created' => ['type' => 'timestamp', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null],
28
        '_indexes' => [
29
            'completed' => ['type' => 'index', 'columns' => ['completed'], 'length' => []],
30
            'worker_key' => ['type' => 'index', 'columns' => ['worker_key'], 'length' => []],
31
            'task' => ['type' => 'index', 'columns' => ['task'], 'length' => []],
32
        ],
33
        '_constraints' => [
34
            'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
35
        ],
36
        '_options' => [
37
            'engine' => 'InnoDB',
38
            'collation' => 'utf8_general_ci'
39
        ],
40
    ];
41
    // @codingStandardsIgnoreEnd
42
    
43
    /**
44
     * Init method
45
     *
46
     * @return void
47
     */
48
    public function init()
49
    {
50
        $this->records = [
51
        ];
52
        parent::init();
53
    }
54
}
55