Passed
Push — develop ( 356c70...c6492e )
by Richard
03:28
created

LsfTextarea::response()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 4
c 2
b 1
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Riclep\StoryblokForms\Blocks;
4
5
use Riclep\StoryblokForms\Input;
6
7
class LsfTextarea extends Input
8
{
9
	protected $type = 'input';
10
11
	/**
12
	 * Returns the Input’s response after the form has been submitted and validated
13
	 *
14
	 * @param $input
15
	 * @return mixed
16
	 */
17
	public function response($input) {
18
		return [
19
			'label' => $this->label,
0 ignored issues
show
Bug Best Practice introduced by
The property label does not exist on Riclep\StoryblokForms\Blocks\LsfTextarea. Since you implemented __get, consider adding a @property annotation.
Loading history...
20
			'response' => $input,
21
			'type' => $this->type,
22
		];
23
	}
24
}