Completed
Push — master ( be02a5...a1ec95 )
by Nick
22:04 queued 02:39
created

Metadata   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 36
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace EloquentJs\ScriptGenerator\Model;
4
5
class Metadata
6
{
7
    /**
8
     * @var string
9
     */
10
    public $name;
11
12
    /**
13
     * @var string
14
     */
15
    public $endpoint;
16
17
    /**
18
     * @var array
19
     */
20
    public $dates;
21
22
    /**
23
     * @var array
24
     */
25
    public $scopes;
26
27
    /**
28
     * @param string $name
29
     * @param string $endpoint
30
     * @param array $dates
31
     * @param array $scopes
32
     */
33
    public function __construct($name, $endpoint, array $dates = [], array $scopes = [])
34
    {
35
        $this->name = $name;
36
        $this->endpoint = $endpoint;
37
        $this->dates = $dates;
38
        $this->scopes = $scopes;
39
    }
40
}
41