HasLink::__construct()

void __construct(string $text, string|null $url = null) Create a new constraint instance. Parameters string $text string|null $url Return Value void

HasLink::toString()

string toString() Get a string representation of the object. Placeholder method to avoid forcing definition of this method. Return Value string

HasLink::matches()

bool matches(Crawler|string $crawler) Check if the link is found in the given crawler. Parameters Crawler|string $crawler Return Value bool

HasLink::getFailureDescription()

string getFailureDescription() Returns the description of the failure. Return Value string

HasLink

HasLink class HasLink extends PageConstraint (View source) Methods string toString() Get a string representation of the object. from PageConstraint void __construct(string $text, string|null $url = null) Create a new constraint instance. bool matches(Crawler|string $crawler) Check if the link is found in the given crawler. string getFailureDescription() Returns the description of the failure.

HasInElement::__construct()

void __construct(string $element, string $text) Create a new constraint instance. Parameters string $element string $text Return Value void

HasInElement::toString()

string toString() Get a string representation of the object. Placeholder method to avoid forcing definition of this method. Return Value string

HasInElement::matches()

bool matches(Crawler|string $crawler) Check if the source or text is found within the element in the given crawler. Parameters Crawler|string $crawler Return Value bool

HasInElement

HasInElement class HasInElement extends PageConstraint (View source) Methods string toString() Get a string representation of the object. from PageConstraint void __construct(string $element, string $text) Create a new constraint instance. bool matches(Crawler|string $crawler) Check if the source or text is found within the element in the given crawler.

HashServiceProvider::__construct()

void __construct(Application $app) Create a new service provider instance. Parameters Application $app Return Value void