public function setFlags($flags)
    {
        if (!is_int($flags)) {
            throw new InvalidArgumentException('integer', 0);
        }

        if (($flags & FORCE_USE_PROC_OPEN) && ($flags & FORCE_USE_EXEC)) {
            throw new DomainException("Invalid flags: FORCE_USE_PROC_OPEN and FORCE_USE_EXEC cannot be set at the same time");
        }

        $this->flags = $flags;

        return $this;
    }
public function setFlags($flags)
    {
        if (!is_int($flags)) {
            throw new InvalidArgumentException('integer', 0);
        }

        if (($flags & FORCE_USE_PROC_OPEN) && ($flags & FORCE_USE_EXEC)) {
            throw new DomainException("Invalid flags: FORCE_USE_PROC_OPEN and FORCE_USE_EXEC cannot be set at the same time");
        }

        $this->flags = $flags;

        return $this;
    }
public function setFlags ( $ flags ) { if ( ! is_int ( $ flags ) ) { throw new InvalidArgumentException ( 'integer' , 0 ) ; } if ( ( $ flags & FORCE_USE_PROC_OPEN ) && ( $ flags & FORCE_USE_EXEC ) ) { throw new DomainException ( "Invalid flags: FORCE_USE_PROC_OPEN and FORCE_USE_EXEC cannot be set at the same time" ) ; } $ this -> flags = $ flags ; return $ this ; }
Set the flags for this Command

@param integer $flags
@return $this
@throws InvalidArgumentException If $flags is not an integer
@throws DomainException
Set the flags for this Command