public function read($filePath) { parent::read($filePath); if (is_null($this->getReturnStartPosition())) { throw new \Exception('Cannot find a class in this file (' . $filePath . ')'); } return $this; }