ProductVariantOptionEntity   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 4
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUnderscoreName() 0 3 1
1
<?php
2
3
/**
4
 * PHP version 5.4 and 8
5
 *
6
 * @category  MessageEntity
7
 * @package   Payever\Products
8
 * @author    payever GmbH <[email protected]>
9
 * @author    Hennadii.Shymanskyi <[email protected]>
10
 * @copyright 2017-2021 payever GmbH
11
 * @license   MIT <https://opensource.org/licenses/MIT>
12
 * @link      https://docs.payever.org/shopsystems/api/getting-started
13
 */
14
15
namespace Payever\ExternalIntegration\Products\Http\MessageEntity;
16
17
use Payever\ExternalIntegration\Core\Base\MessageEntity;
18
19
/**
20
 * @method string getName()
21
 * @method string getValue()
22
 * @method self setName(string $name)
23
 * @method self setValue(string $value)
24
 */
25
class ProductVariantOptionEntity extends MessageEntity
26
{
27
    /** @var string */
28
    protected $name;
29
30
    /** @var string */
31
    protected $value;
32
33
    /**
34
     * @return string
35
     */
36
    public function getUnderscoreName()
37
    {
38
        return strtolower(str_replace(' ', '_', $this->name));
39
    }
40
}
41