ElementBase::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Fusonic\OpenGraph\Elements;
4
5
/**
6
 * Abstract base class for all OpenGraph elements (e.g. images, videos etc.)
7
 */
8
abstract class ElementBase
9
{
10 4
    protected function __construct()
11
    {
12 4
    }
13
14
    /**
15
     * Gets all properties set on this element.
16
     *
17
     * @return  array|Property[]
18
     */
19
    abstract public function getProperties();
20
}
21