Consolidate namespaces

This commit is contained in:
Sebastian Meyer 2023-11-15 14:43:11 +01:00
parent b39a482136
commit 9266905a2b
9 changed files with 13 additions and 13 deletions

View File

@ -24,7 +24,7 @@ namespace OCC\Basics\DataStructures;
use InvalidArgumentException;
use SplDoublyLinkedList;
use OCC\Basics\Traits\Getter;
use OCC\Basics\Trait\Getter;
/**
* A type-sensitive, taversable List.
@ -44,8 +44,7 @@ class StrictList extends SplDoublyLinkedList
/**
* Defines the allowed types for items.
*
* If empty, all types are allowed.
* Possible values are:
* If empty, all types are allowed. Possible values are:
* - "array"
* - "bool"
* - "callable"
@ -59,6 +58,7 @@ class StrictList extends SplDoublyLinkedList
* - "resource"
* - "scalar"
* - "string"
*
* Fully qualified class names (FQCN) can be specified instead of the
* generic type "object".
*/
@ -141,7 +141,7 @@ class StrictList extends SplDoublyLinkedList
/**
* Magic getter method for $this->allowedTypes.
* @see OCC\Basics\Traits\Getter
* @see OCC\Basics\Trait\Getter
*
* @return array The list of allowed item types
*/

View File

@ -20,14 +20,14 @@
declare(strict_types=1);
namespace OCC\Basics\Functions;
namespace OCC\Basics\HelperFunction;
use ErrorException;
/**
* Converts an internal PHP error into an ErrorException.
*
* Usage: set_error_handler('\\OCC\\Basics\\Functions\\throwErrorException');
* Usage: set_error_handler('\\OCC\\Basics\\HelperFunction\\throwErrorException');
*
* @author Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
* @package opencultureconsulting/basics

View File

@ -20,7 +20,7 @@
declare(strict_types=1);
namespace OCC\Basics\Traits;
namespace OCC\Basics\InterfaceTrait;
/**
* A generic implementation of the ArrayAccess interface.

View File

@ -20,7 +20,7 @@
declare(strict_types=1);
namespace OCC\Basics\Traits;
namespace OCC\Basics\InterfaceTrait;
/**
* A generic implementation of the Countable interface.

View File

@ -20,7 +20,7 @@
declare(strict_types=1);
namespace OCC\Basics\Traits;
namespace OCC\Basics\InterfaceTrait;
/**
* A generic implementation of the Iterator interface.

View File

@ -20,7 +20,7 @@
declare(strict_types=1);
namespace OCC\Basics\Traits;
namespace OCC\Basics\InterfaceTrait;
use ArrayIterator;

View File

@ -20,7 +20,7 @@
declare(strict_types=1);
namespace OCC\Basics\Traits;
namespace OCC\Basics\Trait;
use InvalidArgumentException;

View File

@ -20,7 +20,7 @@
declare(strict_types=1);
namespace OCC\Basics\Traits;
namespace OCC\Basics\Trait;
use InvalidArgumentException;

View File

@ -20,7 +20,7 @@
declare(strict_types=1);
namespace OCC\Basics\Traits;
namespace OCC\Basics\Trait;
use LogicException;