public function getHash($type = 'guess', $quality = 80) { if (null === $this->hash) { $this->generateHash($type, $quality); } return $this->hash; }