mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Renamed the base DBElement classes to AbstractDBElement to comply with symfony recommendations.
This commit is contained in:
parent
da72f5b3ec
commit
594c694ee0
62 changed files with 203 additions and 203 deletions
|
@ -24,7 +24,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Helpers\Trees;
|
||||
|
||||
use App\Entity\Base\StructuralDBElement;
|
||||
use App\Entity\Base\AbstractStructuralDBElement;
|
||||
use ArrayIterator;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use RecursiveIterator;
|
||||
|
@ -38,7 +38,7 @@ final class StructuralDBElementIterator extends ArrayIterator implements Recursi
|
|||
|
||||
public function hasChildren()
|
||||
{
|
||||
/** @var StructuralDBElement $element */
|
||||
/** @var AbstractStructuralDBElement $element */
|
||||
$element = $this->current();
|
||||
|
||||
return ! empty($element->getSubelements());
|
||||
|
@ -46,7 +46,7 @@ final class StructuralDBElementIterator extends ArrayIterator implements Recursi
|
|||
|
||||
public function getChildren()
|
||||
{
|
||||
/** @var StructuralDBElement $element */
|
||||
/** @var AbstractStructuralDBElement $element */
|
||||
$element = $this->current();
|
||||
|
||||
$subelements = $element->getSubelements();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue