@@ 35-87 (lines=53) @@ | ||
32 | * |
|
33 | * @package TildBJ\Seeder\Domain\Model\Check |
|
34 | */ |
|
35 | class Check extends Column implements CheckInterface |
|
36 | { |
|
37 | /** |
|
38 | * @var int |
|
39 | */ |
|
40 | protected $cols; |
|
41 | ||
42 | /** |
|
43 | * @var array |
|
44 | */ |
|
45 | protected $items; |
|
46 | ||
47 | /** |
|
48 | * Input constructor. |
|
49 | * |
|
50 | * @param string $columnName |
|
51 | * @param $configuration |
|
52 | */ |
|
53 | public function __construct($columnName, $configuration) |
|
54 | { |
|
55 | parent::__construct($columnName); |
|
56 | $this->cols = $configuration['cols']; |
|
57 | $this->items = $configuration['items']; |
|
58 | } |
|
59 | ||
60 | ||
61 | /** |
|
62 | * @return int |
|
63 | */ |
|
64 | public function getCols() |
|
65 | { |
|
66 | return $this->cols; |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * @return array |
|
71 | */ |
|
72 | public function getItems() |
|
73 | { |
|
74 | return $this->items; |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * @param array $items |
|
79 | * @return CheckInterface |
|
80 | */ |
|
81 | public function setItems(array $items) |
|
82 | { |
|
83 | $this->items = $items; |
|
84 | ||
85 | return $this; |
|
86 | } |
|
87 | } |
|
88 |
@@ 35-89 (lines=55) @@ | ||
32 | * |
|
33 | * @package TildBJ\Seeder\Domain\Model\Input |
|
34 | */ |
|
35 | class Input extends Column implements InputInterface |
|
36 | { |
|
37 | /** |
|
38 | * @var string |
|
39 | */ |
|
40 | protected $max; |
|
41 | ||
42 | /** |
|
43 | * @var array |
|
44 | */ |
|
45 | protected $range; |
|
46 | ||
47 | /** |
|
48 | * @var int |
|
49 | */ |
|
50 | protected $size; |
|
51 | ||
52 | /** |
|
53 | * Input constructor. |
|
54 | * |
|
55 | * @param string $columnName |
|
56 | * @param $configuration |
|
57 | */ |
|
58 | public function __construct($columnName, $configuration) |
|
59 | { |
|
60 | parent::__construct($columnName); |
|
61 | $this->max = $configuration['max']; |
|
62 | $this->range = $configuration['range']; |
|
63 | $this->size = $configuration['size']; |
|
64 | } |
|
65 | ||
66 | /** |
|
67 | * @return int |
|
68 | */ |
|
69 | public function getMax() |
|
70 | { |
|
71 | return $this->max; |
|
72 | } |
|
73 | ||
74 | /** |
|
75 | * @return array |
|
76 | */ |
|
77 | public function getRange() |
|
78 | { |
|
79 | return $this->range; |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * @return int |
|
84 | */ |
|
85 | public function getSize() |
|
86 | { |
|
87 | return $this->size; |
|
88 | } |
|
89 | } |
|
90 |