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);
    }
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);
    }
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 ) ; }
Set array source

@param  array $source

@return void
@throws Grid\GridException
Set array source