-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectRegistryInterface.php
More file actions
49 lines (44 loc) · 1.33 KB
/
ObjectRegistryInterface.php
File metadata and controls
49 lines (44 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
* This file is part of the Klipper package.
*
* (c) François Pluchino <francois.pluchino@klipper.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Klipper\Component\DefaultValue;
/**
* The central registry of the Object Default Value component.
*
* @author François Pluchino <francois.pluchino@klipper.dev>
*/
interface ObjectRegistryInterface
{
/**
* Returns a object default value type by name.
*
* This methods registers the type extensions object default value and the object default value extensions.
*
* @param string $classname The class name of the type
*
* @return ResolvedObjectTypeInterface The type
*
* @throws Exception\UnexpectedTypeException If the passed name is not a string
*/
public function getType(string $classname): ResolvedObjectTypeInterface;
/**
* Returns whether the given object default value type is supported.
*
* @param string $classname The class name of the type
*
* @return bool Whether the type is supported
*/
public function hasType(string $classname): bool;
/**
* Returns the extensions loaded by the framework.
*
* @return array
*/
public function getExtensions(): iterable;
}