mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:50:10 +00:00
Using getter/setter functions
This commit is contained in:
parent
b4aa796e75
commit
8f46064430
14 changed files with 55 additions and 34 deletions
25
src/App.php
25
src/App.php
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue