EntityGeneratorCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 72
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace Hechoenlaravel\JarvisFoundation\EntityGenerator;
4
5
/**
6
 * Class EntityGeneratorCommand
7
 * @package Hechoenlaravel\JarvisFoundation\EntityGenerator
8
 */
9
class EntityGeneratorCommand
10
{
11
    /**
12
     * The entity namespace
13
     * @string
14
     */
15
    public $namespace;
16
17
    /**
18
     * The entity name
19
     * @string
20
     */
21
    public $name;
22
23
    /**
24
     * The entity description
25
     * @string
26
     */
27
    public $description;
28
29
    /**
30
     * The entity slug form the table name
31
     * @string
32
     */
33
    public $slug;
34
35
    /**
36
     * The entity database prefix
37
     * @string
38
     */
39
    public $prefix;
40
41
    /**
42
     * Is the entity locked? means it cant be erase
43
     * @boolean
44
     */
45
    public $locked;
46
47
    /**
48
     * Should the command create the DB table?
49
     * @boolean
50
     */
51
    public $create_table;
52
53
    /**
54
     * is there a table name defined?
55
     * @boolean
56
     */
57
    public $table_name;
58
59
60
    /**
61
     * @param string $namespace
62
     * @param string $name
63
     * @param string $description
64
     * @param string $slug
65
     * @param string $prefix
66
     * @param bool $locked
67
     * @param string $table_name
68
     */
69
    public function __construct($namespace = "", $name = "", $description = "", $slug = "", $prefix = "", $locked = true, $create_table = true, $table_name = null)
70
    {
71
        $this->namespace = $namespace;
72
        $this->name = $name;
73
        $this->description = $description;
74
        $this->slug = $slug;
75
        $this->prefix = $prefix;
76
        $this->locked = $locked;
77
        $this->create_table = $create_table;
78
        $this->table_name = $table_name;
79
    }
80
}
81