Using getter/setter functions

This commit is contained in:
Michael 2021-07-24 20:34:07 +00:00
parent b4aa796e75
commit 8f46064430
14 changed files with 55 additions and 34 deletions

View file

@ -56,8 +56,9 @@ use Psr\Log\LoggerInterface;
*/
class App
{
public $profile_owner;
public $contact_id;
private $profile_owner;
private $contact_id;
public $user;
public $data = [];
/** @deprecated 2019.09 - use App\Arguments->getArgv() or Arguments->get() */
@ -129,6 +130,26 @@ class App
*/
private $pConfig;
public function setProfileOwner(int $owner_id)
{
$this->profile_owner = $owner_id;
}
public function getProfileOwner()
{
return $this->profile_owner;
}
public function setContactId(int $contact_id)
{
$this->contact_id = $contact_id;
}
public function getContactId()
{
return $this->contact_id;
}
/**
* Returns the current config cache of this node
*