src/ColumnNumberAwareTrait.php
protected function _setColumnNumber($columnNumber)
    {
        if ($columnNumber !== null) {
            try {
                $columnNumber = $this->_normalizeInt($columnNumber);
            } catch (RootException $e) {
                throw $this->_createInvalidArgumentException($this->__('Invalid column number'), null, $e, $columnNumber);
            }

            if ($columnNumber < 1) {
                throw $this->_createInvalidArgumentException($this->__('Column number must be positive'), null, null, $columnNumber);
            }
        }

        $this->columnNumber = $columnNumber;
    }
protected function _setColumnNumber($columnNumber)
    {
        if ($columnNumber !== null) {
            try {
                $columnNumber = $this->_normalizeInt($columnNumber);
            } catch (RootException $e) {
                throw $this->_createInvalidArgumentException($this->__('Invalid column number'), null, $e, $columnNumber);
            }

            if ($columnNumber < 1) {
                throw $this->_createInvalidArgumentException($this->__('Column number must be positive'), null, null, $columnNumber);
            }
        }

        $this->columnNumber = $columnNumber;
    }
protected function _setColumnNumber ( $ columnNumber ) { if ( $ columnNumber !== null ) { try { $ columnNumber = $ this -> _normalizeInt ( $ columnNumber ) ; } catch ( RootException $ e ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Invalid column number' ) , null , $ e , $ columnNumber ) ; } if ( $ columnNumber < 1 ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Column number must be positive' ) , null , null , $ columnNumber ) ; } } $ this -> columnNumber = $ columnNumber ; }
Assigns a column number to this instance.

@since [*next-version*]

@param int|string|Stringable|float|null $columnNumber The column number.
Must be a whole positive number.
Assigns a column number to this instance .