example/symfony28/app/SymfonyRequirements.php
public function getFailedRequirements()
    {
        $array = [];
        foreach ($this->requirements as $req) {
            if (!$req->isFulfilled() && !$req->isOptional()) {
                $array[] = $req;
            }
        }

        return $array;
    }
public function getFailedRequirements()
    {
        $array = [];
        foreach ($this->requirements as $req) {
            if (!$req->isFulfilled() && !$req->isOptional()) {
                $array[] = $req;
            }
        }

        return $array;
    }
public function getFailedRequirements ( ) { $ array = [ ] ; foreach ( $ this -> requirements as $ req ) { if ( ! $ req -> isFulfilled ( ) && ! $ req -> isOptional ( ) ) { $ array [ ] = $ req ; } } return $ array ; }
Returns the mandatory requirements that were not met.

@return array Array of Requirement instances
Returns the mandatory requirements that were not met .