Completed
Push — develop ( 8f243f...74761d )
by Daniel
06:56
created

Collection::getResource()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Content\Component\Collection;
4
5
use ApiPlatform\Core\Annotation\ApiResource;
6
use ApiPlatform\Core\Annotation\ApiSubresource;
7
use Silverback\ApiComponentBundle\Entity\Content\Component\AbstractComponent;
8
9
/**
10
 * @ApiResource()
11
 * @author Daniel West <[email protected]>
12
 */
13
class Collection extends AbstractComponent
14
{
15
    /**
16
     * @var mixed
17
     */
18
    private $resource;
19
20
    /**
21
     * @return mixed
22
     */
23
    public function getResource()
24
    {
25
        return $this->resource;
26
    }
27
}
28