code: public static function getAll($offset = null, $limit = null)
      {
          $query = self::find();
          self::addPaginationParameters($query, $offset, $limit);
          return $query->all();
      }
docs: Get all model rows
  @author Adeyemi Olaoye <yemi@cottacush.com>
  @param null $offset
  @param null $limit
  @return array|\yii\db\ActiveRecord[]