FileExistsResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
4
/*
5
 * This file is part of the package typo3/cms-digital-asset-management.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE file that was distributed with this source code.
9
 */
10
11
namespace TYPO3\CMS\DigitalAssetManagement\Http;
12
13
use TYPO3\CMS\Core\Http\JsonResponse;
14
15
class FileExistsResponse extends JsonResponse
16
{
17
    public const FILE_DOES_NOT_EXIST = 0;
18
    public const PARENT_FOLDER_DOES_NOT_EXIST = 1;
19
20
    /**
21
     * @param int $state
22
     */
23
    public function __construct(int $state)
24
    {
25
        parent::__construct(['state' => $state]);
26
    }
27
}
28