Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
85.71% |
6 / 7 |
CRAP | |
91.67% |
11 / 12 |
ServiceClass | |
0.00% |
0 / 1 |
|
85.71% |
6 / 7 |
8.04 | |
91.67% |
11 / 12 |
getClassName | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setClassName | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getClassShortName | |
0.00% |
0 / 1 |
2.15 | |
66.67% |
2 / 3 |
|||
getConstructCall | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setConstructCall | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getConstructFactoryClassName | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setConstructFactoryClassName | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
declare(strict_types = 1); | |
namespace Siesta\Model; | |
use Siesta\Util\StringUtil; | |
class ServiceClass | |
{ | |
/** | |
* @var string | |
*/ | |
protected $className; | |
/** | |
* @var string | |
*/ | |
protected $constructCall; | |
/** | |
* @var string | |
*/ | |
protected $constructFactoryClassName; | |
/** | |
* @return string | |
*/ | |
public function getClassName() | |
{ | |
return $this->className; | |
} | |
/** | |
* @param string $className | |
*/ | |
public function setClassName($className) | |
{ | |
$this->className = trim($className, "\\"); | |
} | |
/** | |
* @return null|string | |
*/ | |
public function getClassShortName() | |
{ | |
if ($this->className === null) { | |
return null; | |
} | |
return StringUtil::getEndAfterLast($this->getClassName(), "\\"); | |
} | |
/** | |
* @return string | |
*/ | |
public function getConstructCall() | |
{ | |
return $this->constructCall; | |
} | |
/** | |
* @param string $constructCall | |
*/ | |
public function setConstructCall($constructCall) | |
{ | |
$this->constructCall = $constructCall; | |
} | |
/** | |
* @return string | |
*/ | |
public function getConstructFactoryClassName() | |
{ | |
return $this->constructFactoryClassName; | |
} | |
/** | |
* @param string $constructFactoryClassName | |
*/ | |
public function setConstructFactoryClassName($constructFactoryClassName) | |
{ | |
$this->constructFactoryClassName = $constructFactoryClassName; | |
} | |
} |