Completed
Pull Request — master (#628)
by Amrouche
06:57 queued 03:03
created

Entrypoint   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
A getResourceNameCollection() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace ApiPlatform\Core\Api;
13
14
use ApiPlatform\Core\Metadata\Resource\ResourceNameCollection;
15
16
/**
17
 * The first path you will see in the API.
18
 *
19
 * @author Amrouche Hamza <[email protected]>
20
 */
21
final class Entrypoint
22
{
23
    private $resourceNameCollection;
24
25
    public function create($resourceNameCollection): Entrypoint
26
    {
27
        $this->resourceNameCollection = $resourceNameCollection;
28
29
        return $this;
30
    }
31
32
    public function getResourceNameCollection(): ResourceNameCollection
33
    {
34
        return $this->resourceNameCollection;
35
    }
36
}
37