original_string: public function setSource($source): void
      {
          if (!\is_array($source) && !($source instanceof \ArrayAccess)) {
              throw new Grid\GridException('Source of `ArraySource` should be array or implement ArrayAccess interface');
          }
          parent::setSource($source);
      }
code: public function setSource($source): void
      {
          if (!\is_array($source) && !($source instanceof \ArrayAccess)) {
              throw new Grid\GridException('Source of `ArraySource` should be array or implement ArrayAccess interface');
          }
          parent::setSource($source);
      }
code_tokens: public function setSource ( $ source ) : void { if ( ! \ is_array ( $ source ) && ! ( $ source instanceof \ ArrayAccess ) ) { throw new Grid \ GridException ( 'Source of `ArraySource` should be array or implement ArrayAccess interface' ) ; } parent :: setSource ( $ source ) ; }
docstring: Set array source
  
  @param  array $source
  
  @return void
  @throws Grid\GridException
docstring_tokens: Set array source