code: public function getAttributes()
      {
          if (!isset($this->meta)) {
              return $this->_attributes;
          }
          $a = [];
          foreach ($this->meta->attributeKeys as $k) {
              $a[$k] = null;
              if (is_array($this->_attributes) && isset($this->_attributes[$k])) {
                  $a[$k] = $this->_attributes[$k];
              }
          }
  
          return $a;
      }
docs: Get attributes.
  
  @return [[@doctodo return_type:getAttributes]] [[@doctodo return_description:getAttributes]]