Completed
Pull Request — master (#628)
by Amrouche
03:50
created

Documentation::getResourceNameCollection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 3
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 0
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\Documentation;
13
14
15
use ApiPlatform\Core\Metadata\Resource\ResourceNameCollection;
16
17
/**
18
 * Generates the API documentation.
19
 *
20
 * @author Amrouche Hamza <[email protected]>
21
 */
22
23
class Documentation
24
{
25
    private $resourceNameCollection;
26
27
    public function __construct(ResourceNameCollection $resourceNameCollection)
28
    {
29
        $this->resourceNameCollection = $resourceNameCollection;
30
    }
31
32
   public function getResourceNameCollection() {
33
       return $this->resourceNameCollection;
34
   }
35
36
}