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

Metadata::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 4
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