Metadata::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 6
nc 1
nop 5
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
     * @var array
29
     */
30
    public $relations;
31
32
    /**
33
     * @param string $name
34
     * @param string $endpoint
35
     * @param array $dates
36
     * @param array $scopes
37
     */
38
    public function __construct($name, $endpoint, array $dates = [], array $scopes = [], array $relations = [])
39
    {
40
        $this->name = $name;
41
        $this->endpoint = $endpoint;
42
        $this->dates = $dates;
43
        $this->scopes = $scopes;
44
        $this->relations = $relations;
45
    }
46
}
47