filename = $filename; $this->modificator = $modificator; } /** * @return bool */ public function isAdded() { return $this->modificator === static::ADDED; } /** * @return bool */ public function isDeleted() { return $this->modificator === static::DELETED; } /** * @return bool */ public function isModified() { return $this->modificator === static::MODIFIED; } /** * @return bool */ public function isRenamed() { return $this->modificator === static::RENAMED; } /** * @return bool */ public function isModuleFile() { return strpos($this->filename, static::MODULE_ID) === 0; } /** * @return string */ public function getFilename() { return $this->filename; } }