Passed
Push — developer ( 6b5868...bed0f9 )
by Radosław
22:42 queued 03:39
created

AbstractBase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
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 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getError() 0 3 1
1
<?php
2
/**
3
 * YetiForce shop AbstractBaseProduct file.
4
 *
5
 * @package App
6
 *
7
 * @copyright YetiForce S.A.
8
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
9
 * @author    Radosław Skrzypczak <[email protected]>
10
 */
11
12
namespace App\YetiForce;
13
14
/**
15
 * YetiForce shop AbstractBaseProduct class.
16
 */
17
abstract class AbstractBase
18
{
19
	/** @var string Last error. */
20
	protected ?string $error = null;
21
	/** @var bool Response result */
22
	protected bool $success = false;
23
24
	/**
25
	 * Get last error.
26
	 *
27
	 * @return string
28
	 */
29
	public function getError(): string
30
	{
31
		return $this->error ?? '';
32
	}
33
}
34