code: public function getObjects(array $whereColumnsInfo = null, string $orderBy = null): array 
      {
          $permissions = [];
          foreach ($this->selectArray(null, $whereColumnsInfo, $orderBy) as $permissionArray) {
              $permissions[] = $this->buildPermission($permissionArray['id'], $permissionArray['title'], $permissionArray['description'], $permissionArray['active'], $permissionArray['created'], $permissionArray['roles']);
          }
  
          return $permissions;
      }
docs: selects and converts recordset to array of objects and return