matchSpecific example

return self::$transOpInt[$this->operator];
    }

    /** * @param ConstraintInterface $provider * * @return bool */
    public function matches(ConstraintInterface $provider)
    {
        if ($provider instanceof self) {
            return $this->matchSpecific($provider);
        }

        // turn matching around to find a match         return $provider->matches($this);
    }

    /** * {@inheritDoc} */
    public function setPrettyString($prettyString)
    {
        

    public static function compare($version1$operator$version2)
    {
        $constraint = new Constraint($operator$version2);

        return $constraint->matchSpecific(new Constraint('==', $version1), true);
    }
}
Home | Imprint | This part of the site doesn't use cookies.