Lazer\Classes\Helpers\File::getPath PHP Method

getPath() final public method

final public getPath ( )
    public final function getPath()
    {
        if (!defined('LAZER_DATA_PATH')) {
            throw new LazerException('Please define constant LAZER_DATA_PATH (check README.md)');
        } else {
            if (!empty($this->type)) {
                return LAZER_DATA_PATH . $this->name . '.' . $this->type . '.json';
            } else {
                throw new LazerException('Please specify the type of file in class: ' . __CLASS__);
            }
        }
    }