cleanup and tests added for ci/cd

This commit is contained in:
Dennis Eichhorn 2019-11-20 22:28:04 +01:00
parent 91ece832e8
commit 8e256d8761
7 changed files with 100 additions and 1 deletions

View File

@ -122,7 +122,16 @@ final class BackendController extends Controller
return $view; return $view;
} }
private function createOrgTree($components) : array /**
* Create organization tree
*
* @param array $components Componants to form tree for
*
* @return array
*
* @since 1.0.0
*/
private function createOrgTree(array $components) : array
{ {
$tree = []; $tree = [];
foreach ($components as $component) { foreach ($components as $component) {

View File

@ -41,11 +41,27 @@ class DepartmentTagSelectorPopupView extends View
$this->setTemplate('/Modules/Organization/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup'); $this->setTemplate('/Modules/Organization/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup');
} }
/**
* Set the selector id
*
* @param string $id Selector id
*
* @return void
*
* @since 1.0.0
*/
public function setId(string $id) : void public function setId(string $id) : void
{ {
$this->id = $id; $this->id = $id;
} }
/**
* Get selector id
*
* @return string
*
* @since 1.0.0
*/
public function getId() : string public function getId() : string
{ {
return $this->id; return $this->id;

View File

@ -45,11 +45,25 @@ class DepartmentTagSelectorView extends View
$this->addData('department-selector-popup', $view); $this->addData('department-selector-popup', $view);
} }
/**
* Get the selector id
*
* @return string
*
* @since 1.0.0
*/
public function getId() : string public function getId() : string
{ {
return $this->id; return $this->id;
} }
/**
* Is required?
*
* @return bool
*
* @since 1.0.0
*/
public function isRequired() : bool public function isRequired() : bool
{ {
return $this->isRequired; return $this->isRequired;

View File

@ -41,11 +41,27 @@ class PositionTagSelectorPopupView extends View
$this->setTemplate('/Modules/Organization/Theme/Backend/Components/PositionTagSelector/position-selector-popup'); $this->setTemplate('/Modules/Organization/Theme/Backend/Components/PositionTagSelector/position-selector-popup');
} }
/**
* Set selctor id.
*
* @param string $id Id
*
* @return void
*
* @since 1.0.0
*/
public function setId(string $id) : void public function setId(string $id) : void
{ {
$this->id = $id; $this->id = $id;
} }
/**
* Get selector id.
*
* @return string
*
* @since 1.0.0
*/
public function getId() : string public function getId() : string
{ {
return $this->id; return $this->id;

View File

@ -45,11 +45,25 @@ class PositionTagSelectorView extends View
$this->addData('position-selector-popup', $view); $this->addData('position-selector-popup', $view);
} }
/**
* Get selector id
*
* @return string
*
* @since 1.0.0
*/
public function getId() : string public function getId() : string
{ {
return $this->id; return $this->id;
} }
/**
* Is required?
*
* @return bool
*
* @since 1.0.0
*/
public function isRequired() : bool public function isRequired() : bool
{ {
return $this->isRequired; return $this->isRequired;

View File

@ -41,11 +41,27 @@ class UnitTagSelectorPopupView extends View
$this->setTemplate('/Modules/Organization/Theme/Backend/Components/UnitTagSelector/unit-selector-popup'); $this->setTemplate('/Modules/Organization/Theme/Backend/Components/UnitTagSelector/unit-selector-popup');
} }
/**
* Set the selector id
*
* @param string $id Selector id
*
* @return void
*
* @since 1.0.0
*/
public function setId(string $id) : void public function setId(string $id) : void
{ {
$this->id = $id; $this->id = $id;
} }
/**
* Get selector id
*
* @return string
*
* @since 1.0.0
*/
public function getId() : string public function getId() : string
{ {
return $this->id; return $this->id;

View File

@ -45,11 +45,25 @@ class UnitTagSelectorView extends View
$this->addData('unit-selector-popup', $view); $this->addData('unit-selector-popup', $view);
} }
/**
* Get selector id
*
* @return string
*
* @since 1.0.0
*/
public function getId() : string public function getId() : string
{ {
return $this->id; return $this->id;
} }
/**
* Is required?
*
* @return bool
*
* @since 1.0.0
*/
public function isRequired() : bool public function isRequired() : bool
{ {
return $this->isRequired; return $this->isRequired;