mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-31 16:28:41 +00:00
cleanup and tests added for ci/cd
This commit is contained in:
parent
9d08c13338
commit
4262d887b6
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user