Relax\Greppy\SimpleMatcher::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $subject )
$subject string The subject to match against
    public function __construct($subject)
    {
        if (!is_string($subject)) {
            throw new \InvalidArgumentException(sprintf("Expected string subject, got %s.", $subject));
        }
        $this->subject = $subject;
    }