Skip to content

Commit

Permalink
Merge pull request #223 from aik099/use-static-in-doc-blocks
Browse files Browse the repository at this point in the history
Use "static" instead of "self" in DocBlocks
  • Loading branch information
aik099 committed Mar 22, 2024
2 parents bd6e6e4 + 3f93d53 commit bc32b58
Show file tree
Hide file tree
Showing 24 changed files with 55 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function getWrappedElement()
*
* @param string $name Name to set.
*
* @return self
* @return static
*/
public function setName($name)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(array $elements = array())
*
* @param string $name Name to set.
*
* @return self
* @return static
*/
public function setName($name)
{
Expand Down
2 changes: 1 addition & 1 deletion library/QATools/QATools/HtmlElements/Element/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Button extends AbstractTypifiedElement
/**
* Clicks the button.
*
* @return self
* @return static
*/
public function click()
{
Expand Down
8 changes: 4 additions & 4 deletions library/QATools/QATools/HtmlElements/Element/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Checkbox extends LabeledElement implements ISimpleSetter
/**
* Checks checkbox if it is not already checked.
*
* @return self
* @return static
*/
public function check()
{
Expand All @@ -41,7 +41,7 @@ public function check()
/**
* Unchecks checkbox if it is not already unchecked.
*
* @return self
* @return static
*/
public function uncheck()
{
Expand All @@ -55,7 +55,7 @@ public function uncheck()
*
* @param boolean|null $check_or_uncheck Tells, how checkbox state should be altered.
*
* @return self
* @return static
*/
public function toggle($check_or_uncheck = null)
{
Expand All @@ -81,7 +81,7 @@ public function isChecked()
*
* @param mixed $value New value.
*
* @return self
* @return static
*/
public function setValue($value)
{
Expand Down
4 changes: 2 additions & 2 deletions library/QATools/QATools/HtmlElements/Element/FileInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function isMultiple()
*
* @param string $filename Filename.
*
* @return self
* @return static
* @throws FileInputException When file could not be found on disk.
*/
public function setFileToUpload($filename)
Expand All @@ -65,7 +65,7 @@ public function setFileToUpload($filename)
*
* @param mixed $value New value.
*
* @return self
* @return static
*/
public function setValue($value)
{
Expand Down
6 changes: 3 additions & 3 deletions library/QATools/QATools/HtmlElements/Element/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Form extends AbstractElementContainer
*
* @param array $form_data Associative array with keys matching field names.
*
* @return self
* @return static
*/
public function fill(array $form_data)
{
Expand Down Expand Up @@ -127,7 +127,7 @@ public function typify(array $node_elements)
* @param ITypifiedElement $typified_element Element, to set a value for.
* @param mixed $value Element value to set.
*
* @return self
* @return static
* @throws FormException When element doesn't support value changing.
*/
public function setValue(ITypifiedElement $typified_element, $value)
Expand All @@ -147,7 +147,7 @@ public function setValue(ITypifiedElement $typified_element, $value)
/**
* Submits a form.
*
* @return self
* @return static
*/
public function submit()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface ISimpleSetter
*
* @param mixed $value New value.
*
* @return self
* @return static
*/
public function setValue($value);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface ITypifiedElement extends INamed
*
* @param string $name Name to set.
*
* @return self
* @return static
*/
public function setName($name);

Expand Down
2 changes: 1 addition & 1 deletion library/QATools/QATools/HtmlElements/Element/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getUrl()
/**
* Click the link.
*
* @return self
* @return static
*/
public function click()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RadioButton extends LabeledElement
/**
* Selects radio button uf it's not already selected.
*
* @return self
* @return static
*/
public function select()
{
Expand Down
8 changes: 4 additions & 4 deletions library/QATools/QATools/HtmlElements/Element/RadioGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function getSelectedButton()
*
* @param string $text Text.
*
* @return self
* @return static
* @throws RadioGroupException When radio button with given label text wasn't found.
*/
public function selectButtonByLabelText($text)
Expand All @@ -110,7 +110,7 @@ public function selectButtonByLabelText($text)
*
* @param string $value The value to match against.
*
* @return self
* @return static
* @throws RadioGroupException When radio button with given value wasn't found.
*/
public function selectButtonByValue($value)
Expand All @@ -135,7 +135,7 @@ public function selectButtonByValue($value)
*
* @param integer $index Index of a radio button to be selected.
*
* @return self
* @return static
* @throws RadioGroupException When non-existing index was given.
*/
public function selectButtonByIndex($index)
Expand All @@ -159,7 +159,7 @@ public function selectButtonByIndex($index)
*
* @param mixed $value New value.
*
* @return self
* @return static
*/
public function setValue($value)
{
Expand Down
18 changes: 9 additions & 9 deletions library/QATools/QATools/HtmlElements/Element/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function getFirstSelectedOption()
* @param string $text The visible text to match against.
* @param boolean $exact_match Search for exact text.
*
* @return self
* @return static
* @throws SelectException No options were found by given text.
*/
public function selectByText($text, $exact_match = true)
Expand All @@ -152,7 +152,7 @@ public function selectByText($text, $exact_match = true)
* @param string $text The visible text to match against.
* @param boolean $exact_match Search for exact text.
*
* @return self
* @return static
*/
public function deselectByText($text, $exact_match = true)
{
Expand All @@ -168,7 +168,7 @@ public function deselectByText($text, $exact_match = true)
*
* @param mixed $value The value to match against.
*
* @return self
* @return static
* @throws SelectException When option with given value can't be found.
*/
public function selectByValue($value)
Expand All @@ -187,7 +187,7 @@ public function selectByValue($value)
*
* @param mixed $value Value of an option be be deselected.
*
* @return self
* @return static
*/
public function deselectByValue($value)
{
Expand All @@ -201,7 +201,7 @@ public function deselectByValue($value)
/**
* Selects all options.
*
* @return self
* @return static
*/
public function selectAll()
{
Expand All @@ -215,7 +215,7 @@ public function selectAll()
*
* @param array $values Values of options to select.
*
* @return self
* @return static
*/
public function setSelected(array $values)
{
Expand All @@ -236,7 +236,7 @@ public function setSelected(array $values)
/**
* Deselects all options.
*
* @return self
* @return static
*/
public function deselectAll()
{
Expand All @@ -254,7 +254,7 @@ public function deselectAll()
*
* @param mixed $value New value.
*
* @return self
* @return static
*/
public function setValue($value)
{
Expand All @@ -271,7 +271,7 @@ public function setValue($value)
* @param array|SelectOption[] $options Options to be selected.
* @param boolean $first_only Select only first option.
*
* @return self
* @return static
*/
protected function selectOptions(array $options, $first_only = false)
{
Expand Down
8 changes: 4 additions & 4 deletions library/QATools/QATools/HtmlElements/Element/SelectOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SelectOption extends AbstractTypifiedElement
*
* @param Select $select Associated SELECT element.
*
* @return self
* @return static
*/
public function setSelect(Select $select)
{
Expand All @@ -54,7 +54,7 @@ public function setSelect(Select $select)
*
* @param boolean $multiple Append this option to current selection.
*
* @return self
* @return static
* @throws SelectException When no SELECT element association defined.
*/
public function select($multiple = false)
Expand All @@ -76,7 +76,7 @@ public function select($multiple = false)
/**
* Deselects option if it is not already deselected.
*
* @return self
* @return static
* @throws SelectException When non-Selenium driver is used.
*/
public function deselect()
Expand All @@ -100,7 +100,7 @@ public function deselect()
*
* @param boolean|null $select_or_deselect Tells, how option state should be altered.
*
* @return self
* @return static
*/
public function toggle($select_or_deselect = null)
{
Expand Down
6 changes: 3 additions & 3 deletions library/QATools/QATools/HtmlElements/Element/TextInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TextInput extends AbstractTypifiedElement implements ISimpleSetter
/**
* Clears all the text entered into this text input.
*
* @return self
* @return static
*/
public function clear()
{
Expand All @@ -43,7 +43,7 @@ public function clear()
*
* @param mixed $keys Text to print.
*
* @return self
* @return static
*/
public function sendKeys($keys)
{
Expand All @@ -67,7 +67,7 @@ public function getText()
*
* @param mixed $value New value.
*
* @return self
* @return static
*/
public function setValue($value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getName()
*
* @param string $name Name to set.
*
* @return self
* @return static
*/
public function setName($name)
{
Expand Down
2 changes: 1 addition & 1 deletion library/QATools/QATools/PageObject/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(array $options = array())
* @param string $name Config option name.
* @param mixed $value Config option value.
*
* @return self
* @return static
*/
public function setOption($name, $value)
{
Expand Down
2 changes: 1 addition & 1 deletion library/QATools/QATools/PageObject/Config/IConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface IConfig
* @param string $name Config option name.
* @param mixed $value Config option value.
*
* @return self
* @return static
*/
public function setOption($name, $value);

Expand Down
6 changes: 3 additions & 3 deletions library/QATools/QATools/PageObject/IPageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function createDecorator(ISearchContext $search_context);
*
* @param Page $page Page to initialize.
*
* @return self
* @return static
*/
public function initPage(Page $page);

Expand All @@ -53,7 +53,7 @@ public function initPage(Page $page);
*
* @param IElementContainer $element_container AbstractElementContainer to be initialized.
*
* @return self
* @return static
*/
public function initElementContainer(IElementContainer $element_container);

Expand All @@ -63,7 +63,7 @@ public function initElementContainer(IElementContainer $element_container);
* @param ISearchContext $search_context Context, to be used for element initialization.
* @param IPropertyDecorator $property_decorator Element locator factory.
*
* @return self
* @return static
*/
public function initElements(ISearchContext $search_context, IPropertyDecorator $property_decorator);

Expand Down
Loading

0 comments on commit bc32b58

Please sign in to comment.