cleanup and tests added for ci/cd

This commit is contained in:
Dennis Eichhorn 2019-11-20 22:28:04 +01:00
parent 9d08c13338
commit 4262d887b6
3 changed files with 46 additions and 23 deletions

View File

@ -34,9 +34,6 @@ class ContactElement
private int $type = 0;
private $subtype = 0;
private $value = '';
/**
* Description.
*
@ -57,36 +54,32 @@ class ContactElement
return $this->id;
}
/**
* Set type
*
* @param int $type Type
*
* @return void
*
* @since 1.0.0
*/
public function setType(int $type) : void
{
$this->type = $type;
}
/**
* Get type
*
* @return int
*
* @since 1.0.0
*/
public function getType() : int
{
return $this->type;
}
public function setSubtype(int $type) : void
{
$this->subtype = $type;
}
public function getSubtype() : int
{
return $this->subtype;
}
public function getValue() : string
{
return $this->value;
}
public function setValue(string $value) : void
{
$this->value = $value;
}
/**
* Get description
*

View File

@ -46,6 +46,13 @@ class BaseView extends View
$this->addData('popup', $view);
}
/**
* Get selector id
*
* @return string
*
* @since 1.0.0
*/
public function getId() : string
{
return $this->id;
@ -63,6 +70,13 @@ class BaseView extends View
return $this->name;
}
/**
* Is required?
*
* @return bool
*
* @since 1.0.0
*/
public function isRequired() : bool
{
return $this->isRequired;

View File

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