src/LightSaml/Criteria/CriteriaSet.php
public function get($class)
    {
        $result = array();
        foreach ($this->criterions as $criteria) {
            if ($criteria instanceof $class) {
                $result[] = $criteria;
            }
        }

        return $result;
    }
public function get($class)
    {
        $result = array();
        foreach ($this->criterions as $criteria) {
            if ($criteria instanceof $class) {
                $result[] = $criteria;
            }
        }

        return $result;
    }
@param string $class

@return array|CriteriaInterface[]