public function validate()
    {
        foreach ($this as $element) {

            if (
                $element instanceof ValidationAwareInterface ||
                $element instanceof ContainerInterface
            ) {
                $element->validate();
            }
        }
        return $this;
    }
public function validate()
    {
        foreach ($this as $element) {

            if (
                $element instanceof ValidationAwareInterface ||
                $element instanceof ContainerInterface
            ) {
                $element->validate();
            }
        }
        return $this;
    }
public function validate ( ) { foreach ( $ this as $ element ) { if ( $ element instanceof ValidationAwareInterface || $ element instanceof ContainerInterface ) { $ element -> validate ( ) ; } } return $ this ; }
Runs validation chain in all its elements

@return self|$this|ElementInterface
Runs validation chain in all its elements