Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Attributes | List of all members
behat_component_named_replacement Class Reference

Public Member Functions

 __construct (string $from, string $to)
 Create the replacement. More...
 
 get_from (string $component)
 Get the 'from' part of the replacement, formatted for the component. More...
 
 get_to ()
 Get the 'to' part of the replacement. More...
 

Protected Attributes

string $from
 
string $to
 

Constructor & Destructor Documentation

◆ __construct()

behat_component_named_replacement::__construct ( string  $from,
string  $to 
)

Create the replacement.

Parameters
string$fromthis is the old selector that should no longer be used. For example 'group_message'.
string$tothis is the new equivalent that should be used instead. For example 'core_message > Message'.

Member Function Documentation

◆ get_from()

behat_component_named_replacement::get_from ( string  $component)

Get the 'from' part of the replacement, formatted for the component.

Parameters
string$component
Return values
string

◆ get_to()

behat_component_named_replacement::get_to ( )

Get the 'to' part of the replacement.

Return values
stringTarget xpath

The documentation for this class was generated from the following file: