public function setStability($stability)
    {
        if ($stability !== self::STABLE && $stability !== self::UNSTABLE && $stability !== self::ANY) {
            throw new InvalidArgumentException(
                'Invalid stability value. Must be one of "stable", "unstable" or "any".'
            );
        }
        $this->stability = $stability;
    }
public function setStability($stability)
    {
        if ($stability !== self::STABLE && $stability !== self::UNSTABLE && $stability !== self::ANY) {
            throw new InvalidArgumentException(
                'Invalid stability value. Must be one of "stable", "unstable" or "any".'
            );
        }
        $this->stability = $stability;
    }
public function setStability ( $ stability ) { if ( $ stability !== self :: STABLE && $ stability !== self :: UNSTABLE && $ stability !== self :: ANY ) { throw new InvalidArgumentException ( 'Invalid stability value. Must be one of "stable", "unstable" or "any".' ) ; } $ this -> stability = $ stability ; }
Set target stability

@param string $stability
Set target stability