Drop getGroup() method

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2026-02-12 20:06:28 +00:00
parent 992718ff3c
commit 4c8dedc303
3 changed files with 0 additions and 24 deletions

View File

@ -56,14 +56,6 @@ abstract class OptionsPropertyGroup extends OptionsPropertyItem implements Count
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Gets the instance of the class
*/
public function getGroup(): static
{
return $this;
}
/**
* Gets the group of properties
*

View File

@ -24,15 +24,4 @@ abstract class PropertyItem
* - PhpMyAdmin\Properties\Plugins\PluginPropertyItem ( "export", "import", "transformations" )
*/
abstract public function getItemType(): string;
/**
* Only overwritten in the PhpMyAdmin\Properties\Options\OptionsPropertyGroup class:
* Used to tell whether we can use the current item as a group by calling
* the addProperty() or removeProperty() methods, which are not available
* for simple PhpMyAdmin\Properties\Options\OptionsPropertyOneItem subclasses.
*/
public function getGroup(): static|null
{
return null;
}
}

View File

@ -35,9 +35,4 @@ class PropertyItemTest extends AbstractTestCase
unset($this->stub);
}
public function testGetGroup(): void
{
self::assertNull($this->stub->getGroup());
}
}