DummyAction::validates()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
/**
3
 * Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
4
 *
5
 * Licensed under The MIT License
6
 * Redistributions of files must retain the above copyright notice.
7
 *
8
 * @copyright Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
9
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10
 */
11
12
namespace CakeDC\Api\Service\Action;
13
14
use CakeDC\Api\Exception\ValidationException;
15
use CakeDC\Api\Service\CrudService;
16
use CakeDC\Api\Service\ServiceRegistry;
17
use Cake\Validation\Validator;
18
19
/**
20
 * Class DummyAction
21
 *
22
 * @package CakeDC\Api\Service\Action
23
 */
24
class DummyAction extends Action
25
{
26
27
    /**
28
     * Apply validation process.
29
     *
30
     * @return bool|array
31
     */
32
    public function validates()
33
    {
34
        return true;
35
    }
36
37
    /**
38
     * Describe service.
39
     * For services that inherited from CrudService it provides action description using CrudDescribeAction.
40
     *
41
     * @return mixed
42
     */
43
    public function execute()
44
    {
45
        return null;
46
    }
47
}
48