Option   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIterator() 0 3 1
1
<?php
2
3
namespace Helix\Shopify\Product;
4
5
use Helix\Shopify\Base\Data;
6
use IteratorAggregate;
7
use Traversable;
8
9
/**
10
 * @method string   getId       ()
11
 * @method string   getName     ()
12
 * @method $this    setName     (string $name)
13
 * @method int      getPosition ()
14
 * @method string   getProductId()
15
 * @method string[] getValues   ()
16
 * @method $this    setValues   (string[] $values)
17
 */
18
class Option extends Data implements IteratorAggregate
19
{
20
21
    /**
22
     * @return Traversable|string[]
23
     */
24
    public function getIterator()
25
    {
26
        yield from $this->_get('values', []);
27
    }
28
}