Completed
Pull Request — master (#628)
by Amrouche
03:47 queued 32s
created

Documentation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 1
b 0
f 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A create() 0 3 1
A getResourceNameCollection() 0 3 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\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 create() {
33
34
    }
35
36
   public function getResourceNameCollection() {
37
       return $this->resourceNameCollection;
38
   }
39
40
}