AccessToken
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 26
c 0
b 0
f 0
1
<?php
2
/**
3
 * CakePHPify : CakePHP Plugin for Shopify API Authentication
4
 * Copyright (c) Multidimension.al (http://multidimension.al)
5
 * Github : https://github.com/multidimension-al/cakephpify
6
 *
7
 * Licensed under The MIT License
8
 * For full copyright and license information, please see the LICENSE file
9
 * Redistributions of files must retain the above copyright notice.
10
 *
11
 * @copyright (c) Multidimension.al (http://multidimension.al)
12
 * @link      https://github.com/multidimension-al/cakephpify CakePHPify Github
13
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
14
 */
15
16
namespace Multidimensional\Cakephpify\Model\Entity;
17
18
use Cake\ORM\Entity;
19
20
/**
21
 * AccessToken Entity
22
 *
23
 * @property int $id
24
 * @property string $domain
25
 * @property string $token
26
 * @property \Cake\I18n\Time $created_at
27
 * @property \Cake\I18n\Time $updated_at
28
 * @property \Cake\I18n\Time $expired_at
29
 */
30
class AccessToken extends Entity
0 ignored issues
show
Coding Style introduced by
The property $_accessible is not named in camelCase.

This check marks property names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
Coding Style introduced by
The property $_hidden is not named in camelCase.

This check marks property names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
31
{
32
33
    /**
34
     * Fields that can be mass assigned using newEntity() or patchEntity().
35
     *
36
     * Note that when '*' is set to true, this allows all unspecified fields to
37
     * be mass assigned. For security purposes, it is advised to set '*' to false
38
     * (or remove it), and explicitly make individual fields accessible as needed.
39
     *
40
     * @var array
41
     */
42
    protected $_accessible = [
0 ignored issues
show
Coding Style introduced by
$_accessible does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
43
        '*' => true,
44
        'id' => false
45
    ];
46
47
    /**
48
     * Fields that are excluded from JSON versions of the entity.
49
     *
50
     * @var array
51
     */
52
    protected $_hidden = [
0 ignored issues
show
Coding Style introduced by
$_hidden does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
53
        'token'
54
    ];
55
}
56