code: public function getAttributes()
      {
          $attributes = [];
          foreach ($this->sourceFile->headers as $key => $header) {
              $attributes[$header] = isset($this->content[$key]) ? $this->content[$key] : null;
          }
  
          return $attributes;
      }
docs: Get attributes.
  
  @return [[@doctodo return_type:getAttributes]] [[@doctodo return_description:getAttributes]]