public function primary($primary = true)
    {
        $primary = (bool) $primary;

        $this->primary = $primary;

        if ($primary) {
            $this->signed = false;
            $this->allowNull = false;
            $this->autoIncrement = true;
            $this->default = false;
        }

        return $this;
    }
public function primary($primary = true)
    {
        $primary = (bool) $primary;

        $this->primary = $primary;

        if ($primary) {
            $this->signed = false;
            $this->allowNull = false;
            $this->autoIncrement = true;
            $this->default = false;
        }

        return $this;
    }
public function primary ( $ primary = true ) { $ primary = ( bool ) $ primary ; $ this -> primary = $ primary ; if ( $ primary ) { $ this -> signed = false ; $ this -> allowNull = false ; $ this -> autoIncrement = true ; $ this -> default = false ; } return $ this ; }
Method to set property primary

@param   boolean $primary

@return  static  Return self to support chaining.
Method to set property primary