| 1 | <?php |
||
| 2 | |||
| 3 | // ------------------------------------------------------------------------- |
||
| 4 | // OVIDENTIA http://www.ovidentia.org |
||
| 5 | // Ovidentia is free software; you can redistribute it and/or modify |
||
| 6 | // it under the terms of the GNU General Public License as published by |
||
| 7 | // the Free Software Foundation; either version 2, or (at your option) |
||
| 8 | // any later version. |
||
| 9 | // |
||
| 10 | // This program is distributed in the hope that it will be useful, but |
||
| 11 | // WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
| 13 | // See the GNU General Public License for more details. |
||
| 14 | // |
||
| 15 | // You should have received a copy of the GNU General Public License |
||
| 16 | // along with this program; if not, write to the Free Software |
||
| 17 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
||
| 18 | // USA. |
||
| 19 | // ------------------------------------------------------------------------- |
||
| 20 | /** |
||
| 21 | * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) |
||
| 22 | * @copyright Copyright (c) 2022 by SI4YOU ({@link https://www.siforyou.com}) |
||
| 23 | */ |
||
| 24 | namespace Capwelton\LibApp; |
||
| 25 | |||
| 26 | use Capwelton\LibApp\Func_App; |
||
| 27 | |||
| 28 | class AppObject implements AppObjectInterface |
||
| 29 | { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var Func_App |
||
| 33 | */ |
||
| 34 | private $App = null; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 35 | |||
| 36 | /** |
||
| 37 | * @param Func_App $app |
||
| 38 | */ |
||
| 39 | public function __construct(Func_App $app = null) |
||
| 40 | { |
||
| 41 | $this->setApp($app); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Forces the Func_App object to which this object is 'linked'. |
||
| 46 | * |
||
| 47 | * @param Func_App $app |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | public function setApp(Func_App $app = null) |
||
| 51 | { |
||
| 52 | $this->app = $app; |
||
|
0 ignored issues
–
show
|
|||
| 53 | return $this; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get APP object to use with this SET |
||
| 58 | * |
||
| 59 | * @return Func_App |
||
| 60 | */ |
||
| 61 | public function App() |
||
| 62 | { |
||
| 63 | return $this->app; |
||
| 64 | } |
||
| 65 | } |