private function checkTransitionsConfiguration(array $configuration)
    {
        foreach ($configuration as $transitionConfiguration) {
            if (
                is_array($transitionConfiguration) &&
                (count($transitionConfiguration) === 3) &&
                isset($transitionConfiguration[0]) &&
                is_string($transitionConfiguration[0]) &&
                $transitionConfiguration[0] &&
                isset($transitionConfiguration[1]) &&
                is_string($transitionConfiguration[1]) &&
                $transitionConfiguration[1] &&
                isset($transitionConfiguration[2]) &&
                is_string($transitionConfiguration[2]) &&
                $transitionConfiguration[2]
            ) {
                return $this;
            }
        }

        throw new TransitionNotValidException();
    }
private function checkTransitionsConfiguration(array $configuration)
    {
        foreach ($configuration as $transitionConfiguration) {
            if (
                is_array($transitionConfiguration) &&
                (count($transitionConfiguration) === 3) &&
                isset($transitionConfiguration[0]) &&
                is_string($transitionConfiguration[0]) &&
                $transitionConfiguration[0] &&
                isset($transitionConfiguration[1]) &&
                is_string($transitionConfiguration[1]) &&
                $transitionConfiguration[1] &&
                isset($transitionConfiguration[2]) &&
                is_string($transitionConfiguration[2]) &&
                $transitionConfiguration[2]
            ) {
                return $this;
            }
        }

        throw new TransitionNotValidException();
    }
private function checkTransitionsConfiguration ( array $ configuration ) { foreach ( $ configuration as $ transitionConfiguration ) { if ( is_array ( $ transitionConfiguration ) && ( count ( $ transitionConfiguration ) === 3 ) && isset ( $ transitionConfiguration [ 0 ] ) && is_string ( $ transitionConfiguration [ 0 ] ) && $ transitionConfiguration [ 0 ] && isset ( $ transitionConfiguration [ 1 ] ) && is_string ( $ transitionConfiguration [ 1 ] ) && $ transitionConfiguration [ 1 ] && isset ( $ transitionConfiguration [ 2 ] ) && is_string ( $ transitionConfiguration [ 2 ] ) && $ transitionConfiguration [ 2 ] ) { return $ this ; } } throw new TransitionNotValidException ( ) ; }
Given an array of configuration, checks that all data is prepared for
being compiled.

@param array $configuration Configuration

@return $this Self object

@throws TransitionNotValidException Transition not valid
Given an array of configuration checks that all data is prepared for being compiled .