Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
50.00% |
2 / 4 |
CRAP | |
71.43% |
5 / 7 |
| abstract_module | |
0.00% |
0 / 1 |
|
50.00% |
2 / 4 |
5.58 | |
71.43% |
5 / 7 |
| __set | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| __get | |
100.00% |
1 / 1 |
2 | |
100.00% |
3 / 3 |
|||
| before | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| after | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| /* | |
| This file is part of Mkframework. | |
| Mkframework is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU Lesser General Public License as published by | |
| the Free Software Foundation, either version 3 of the License. | |
| Mkframework is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| GNU Lesser General Public License for more details. | |
| You should have received a copy of the GNU Lesser General Public License | |
| along with Mkframework. If not, see <http://www.gnu.org/licenses/>. | |
| */ | |
| /** | |
| * classe abstract_module | |
| * @author Mika | |
| * @link http://mkf.mkdevs.com/ | |
| */ | |
| abstract class abstract_module{ | |
| protected $_tVar; | |
| /** | |
| * setter | |
| */ | |
| public function __set($sVar,$sVal){ | |
| $this->_tVar[$sVar]=$sVal; | |
| } | |
| /** | |
| * getter | |
| */ | |
| public function __get($sVar){ | |
| if(!isset($this->_tVar[$sVar])){ | |
| throw new Exception('Propriete '.$sVar.' _module inexistant'); | |
| } | |
| return $this->_tVar[$sVar]; | |
| } | |
| public function before(){ | |
| } | |
| public function after(){ | |
| } | |
| } |