public function setIsMain($isMain)
    {
        $isMain = (bool) $isMain;

        if ($this->exists() && $this->isMain !== $isMain) {
            $this->updated['isMain'] = true;
        }

        $this->isMain = $isMain;

        return $this;
    }
public function setIsMain($isMain)
    {
        $isMain = (bool) $isMain;

        if ($this->exists() && $this->isMain !== $isMain) {
            $this->updated['isMain'] = true;
        }

        $this->isMain = $isMain;

        return $this;
    }
public function setIsMain ( $ isMain ) { $ isMain = ( bool ) $ isMain ; if ( $ this -> exists ( ) && $ this -> isMain !== $ isMain ) { $ this -> updated [ 'isMain' ] = true ; } $ this -> isMain = $ isMain ; return $ this ; }
Set value for field "account_is_main"

@param  bool $isMain
@return $this
Set value for field account_is_main