/**
  * Get all issues
  *
  * @return array
  */
 public function getIssues()
 {
     if ($this->issues === NULL) {
         if ($this->extensionKey) {
             $this->issues = $this->issueRepository->findByInspectionAndExtensionKey($this->parentMigration->getIdentifier(), $this->extensionKey)->toArray();
         } else {
             $this->issues = $this->issueRepository->findByInspection($this->parentMigration->getIdentifier())->toArray();
         }
     }
     return $this->issues;
 }