Finds objects by a set of criteria.
Optionally sorting and limiting details can be passed. An implementation may throw an UnexpectedValueException if certain values of the sorting or limiting details are not supported.
array $criteria:
array|null $orderBy:
int|null $limit:
int|null $offset:
mixed The objects.
\UnexpectedValueException
function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null);