| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function init() |
||
| 21 | { |
||
| 22 | \BFW\Helpers\Constants::create('ROOT_DIR', $this->obtainRootDir()); |
||
| 23 | |||
| 24 | \BFW\Helpers\Constants::create('APP_DIR', ROOT_DIR.'app/'); |
||
| 25 | \BFW\Helpers\Constants::create('SRC_DIR', ROOT_DIR.'src/'); |
||
| 26 | \BFW\Helpers\Constants::create('WEB_DIR', ROOT_DIR.'web/'); |
||
| 27 | |||
| 28 | \BFW\Helpers\Constants::create('CONFIG_DIR', APP_DIR.'config/'); |
||
| 29 | \BFW\Helpers\Constants::create('MODULES_DIR', APP_DIR.'modules/'); |
||
| 30 | |||
| 31 | \BFW\Helpers\Constants::create('CLI_DIR', SRC_DIR.'cli/'); |
||
| 32 | \BFW\Helpers\Constants::create('CTRL_DIR', SRC_DIR.'controllers/'); |
||
| 33 | \BFW\Helpers\Constants::create('MODELES_DIR', SRC_DIR.'modeles/'); |
||
| 34 | \BFW\Helpers\Constants::create('VIEW_DIR', SRC_DIR.'view/'); |
||
| 35 | |||
| 36 | $this->initStatus = true; |
||
| 37 | } |
||
| 38 | |||
| 52 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: