Passed
Push — develop ( 96a913...1795ba )
by Jens
25:08 queued 14s
created

fieldDefinitions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Commercetools\Core\Error;
4
5
/**
6
 * @package Commercetools\Core\Error
7
 *
8
 * @method string getCode()
9
 * @method ProjectNotConfiguredForLanguagesError setCode(string $code = null)
10
 * @method string getMessage()
11
 * @method ProjectNotConfiguredForLanguagesError setMessage(string $message = null)
12
 * @method array getLanguages()
13
 * @method ProjectNotConfiguredForLanguagesError setLanguages(array $languages = null)
14
 */
15
class ProjectNotConfiguredForLanguagesError extends ApiError
16
{
17
    const CODE = 'ProjectNotConfiguredForLanguages';
18
19
    public function fieldDefinitions()
20
    {
21
        $definitions = parent::fieldDefinitions();
22
        $definitions['languages'] = [static::TYPE => 'array'];
23
24
        return $definitions;
25
    }
26
}
27