public function setScope($scope)
    {
        if (in_array($scope, TableCellScope::asArray(), true) === true || $scope === -1) {
            $this->scope = $scope;
        } else {
            $msg = "The 'scope' argument must be a value from the TableCellScope enumeration, '" . $scope . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setScope($scope)
    {
        if (in_array($scope, TableCellScope::asArray(), true) === true || $scope === -1) {
            $this->scope = $scope;
        } else {
            $msg = "The 'scope' argument must be a value from the TableCellScope enumeration, '" . $scope . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setScope ( $ scope ) { if ( in_array ( $ scope , TableCellScope :: asArray ( ) , true ) === true || $ scope === - 1 ) { $ this -> scope = $ scope ; } else { $ msg = "The 'scope' argument must be a value from the TableCellScope enumeration, '" . $ scope . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the scope attribute.

@param integer $scope A value from the TableCellScope enumeration or -1 if no scope is defined.
@throws \InvalidArgumentException If $scope is not a value from the TableCellScope enumeration nor -1.
Set the scope attribute .