Completed
Pull Request — master (#597)
by Kévin
03:28
created

PlaceholderAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 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\Action;
13
14
/**
15
 * Placeholder returning the data passed in parameter.
16
 *
17
 * @author Kévin Dunglas <[email protected]>
18
 */
19
final class PlaceholderAction
20
{
21
    /**
22
     * @param object $data
23
     *
24
     * @return object
25
     */
26
    public function __invoke($data)
27
    {
28
        return $data;
29
    }
30
}
31