protected function checkRequiredAttributes()
    {
        foreach ($this->getRequired() as $attribute) {
            if (is_null($this->get($attribute))) {
                throw new InvalidArgumentException(sprintf('"%s" cannot be empty.', $attribute));
            }
        }
    }
protected function checkRequiredAttributes()
    {
        foreach ($this->getRequired() as $attribute) {
            if (is_null($this->get($attribute))) {
                throw new InvalidArgumentException(sprintf('"%s" cannot be empty.', $attribute));
            }
        }
    }
protected function checkRequiredAttributes ( ) { foreach ( $ this -> getRequired ( ) as $ attribute ) { if ( is_null ( $ this -> get ( $ attribute ) ) ) { throw new InvalidArgumentException ( sprintf ( '"%s" cannot be empty.' , $ attribute ) ) ; } } }
Check required attributes.

@throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
Check required attributes .