function __construct($str, $fileName) { $this->str = $str; $this->fileName = $fileName; $this->dirName = dirname($fileName); $this->foundVar = array(); parent::__construct(); }