mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-15 23:08:40 +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 int $type = 0;
|
||||||
|
|
||||||
private $subtype = 0;
|
|
||||||
|
|
||||||
private $value = '';
|
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
|
|
@ -57,36 +54,32 @@ class ContactElement
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set type
|
||||||
|
*
|
||||||
|
* @param int $type Type
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function setType(int $type) : void
|
public function setType(int $type) : void
|
||||||
{
|
{
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get type
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getType() : int
|
public function getType() : int
|
||||||
{
|
{
|
||||||
return $this->type;
|
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
|
* Get description
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,13 @@ class BaseView extends View
|
||||||
$this->addData('popup', $view);
|
$this->addData('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;
|
||||||
|
|
@ -63,6 +70,13 @@ class BaseView extends View
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is required?
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function isRequired() : bool
|
public function isRequired() : bool
|
||||||
{
|
{
|
||||||
return $this->isRequired;
|
return $this->isRequired;
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,27 @@ class PopupView extends View
|
||||||
$this->setTemplate('/Modules/Profile/Theme/Backend/Components/AccountGroupSelector/popup');
|
$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
|
public function setId(string $id) : void
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get popup id
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function getId() : string
|
public function getId() : string
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user