code: public function getObjects(array $whereColumnsInfo = null): array 
      {
          $roles = [];
  
          if (null !== $records = $this->select("*", $whereColumnsInfo)) {
              foreach ($records as $record) {
                  $roles[] = $this->buildRole((int) $record['id'], $record['role'], new \DateTimeImmutable($record['created']));
              }
          }
  
          return $roles;
      }
docs: selects roles and converts recordset to array of objects and return