Passed
Push — master ( e33d4b...2ecc51 )
by Wilder
01:19
created

Company::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
rs 10
1
<?php
2
3
4
namespace WilderAmorim\StructuredData;
5
6
/**
7
 * Class Company
8
 * @package WilderAmorim\StructuredData
9
 */
10
class Company
11
{
12
    /** @var string */
13
    public $company;
14
15
    /** @var string */
16
    public $url;
17
18
    /** @var array|null */
19
    public $sameAs;
20
21
    /**
22
     * Company constructor.
23
     * @param string $name
24
     * @param string $url
25
     * @param array|null $sameAs
26
     */
27
    public function __construct(string $name, string $url, ?array $sameAs = null)
28
    {
29
        $this->company = $name;
30
        $this->url = $url;
31
        $this->sameAs = $sameAs;
32
    }
33
}