friendica/src/Core/BaseObject.php
Adam Magness d9e9cbe753 Coding Standards
A few updates for coding standards
2017-11-19 15:32:54 -05:00

48 lines
582 B
PHP

<?php
/**
* @file src/Core/BaseObject.php
*/
namespace Friendica\Core;
require_once 'boot.php';
/**
* Basic object
*
* Contains what is useful to any object
*/
class BaseObject
{
private static $app = null;
/**
* Get the app
*
* Same as get_app from boot.php
*
* @return object
*/
public function getApp()
{
if (self::$app) {
return self::$app;
}
self::$app = boot::get_app();
return self::$app;
}
/**
* Set the app
*
* @param object $app App
*
* @return void
*/
public static function setApp($app)
{
self::$app = $app;
}
}