public function validateArguments()
    {
        parent::validateArguments();

        if (empty($this->arguments['signature'])
            && (empty($this->arguments['extension']) || empty($this->arguments['main']) || empty($this->arguments['sub'])
            )
        ) {
            throw new \InvalidArgumentException('ifHasAccessToModule view helper requires either "signature" or all three other arguments: "extension", "main" and "sub". Please set arguments properly.', 1496314352);
        }
    }
public function validateArguments()
    {
        parent::validateArguments();

        if (empty($this->arguments['signature'])
            && (empty($this->arguments['extension']) || empty($this->arguments['main']) || empty($this->arguments['sub'])
            )
        ) {
            throw new \InvalidArgumentException('ifHasAccessToModule view helper requires either "signature" or all three other arguments: "extension", "main" and "sub". Please set arguments properly.', 1496314352);
        }
    }
public function validateArguments ( ) { parent :: validateArguments ( ) ; if ( empty ( $ this -> arguments [ 'signature' ] ) && ( empty ( $ this -> arguments [ 'extension' ] ) || empty ( $ this -> arguments [ 'main' ] ) || empty ( $ this -> arguments [ 'sub' ] ) ) ) { throw new \ InvalidArgumentException ( 'ifHasAccessToModule view helper requires either "signature" or all three other arguments: "extension", "main" and "sub". Please set arguments properly.' , 1496314352 ) ; } }
Validates arguments given to this view helper.

It checks if either signature or extension and main and sub are set.
Validates arguments given to this view helper .