original_string: protected function checkRequiredAttributes()
      {
          foreach ($this->getRequired() as $attribute) {
              if (is_null($this->get($attribute))) {
                  throw new InvalidArgumentException(sprintf('"%s" cannot be empty.', $attribute));
              }
          }
      }
code: protected function checkRequiredAttributes()
      {
          foreach ($this->getRequired() as $attribute) {
              if (is_null($this->get($attribute))) {
                  throw new InvalidArgumentException(sprintf('"%s" cannot be empty.', $attribute));
              }
          }
      }
code_tokens: protected function checkRequiredAttributes ( ) { foreach ( $ this -> getRequired ( ) as $ attribute ) { if ( is_null ( $ this -> get ( $ attribute ) ) ) { throw new InvalidArgumentException ( sprintf ( '"%s" cannot be empty.' , $ attribute ) ) ; } } }
docstring: Check required attributes.
  
  @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
docstring_tokens: Check required attributes .