/** * Gets SHA1 hash. * * @return string */ public function getSha1() { if (empty($this->properties['sha1'])) { $this->properties['sha1'] = parent::getSha1(); } return $this->properties['sha1']; }