FirstDataNotificationsResourceController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A postAction() 0 7 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Glue\FirstData\Controller;
9
10
use Spryker\Glue\Kernel\Controller\FormattedAbstractController;
11
use Symfony\Component\HttpFoundation\Request;
12
use Symfony\Component\HttpFoundation\Response;
13
14
/**
15
 * @method \SprykerEco\Glue\FirstData\FirstDataFactory getFactory()
16
 */
17
class FirstDataNotificationsResourceController extends FormattedAbstractController
18
{
19
    /**
20
     * @param \Symfony\Component\HttpFoundation\Request $httpRequest
21
     *
22
     * @return \Symfony\Component\HttpFoundation\Response
23
     */
24
    public function postAction(Request $httpRequest): Response
25
    {
26
        $this->getFactory()
27
            ->createFirstDataNotificationSaver()
28
            ->saveFirstDataNotification($httpRequest->request->all());
29
30
        return new Response('', Response::HTTP_OK);
31
    }
32
}
33