77use DateInterval ;
88use DateTime ;
99use phpsap \interfaces \exceptions \IInvalidArgumentException ;
10- use phpsap \interfaces \Util \IJsonSerializable ;
1110
1211/**
1312 * Interface IValue
1817 * @author Gregor J.
1918 * @license MIT
2019 */
21- interface IValue extends IJsonSerializable
20+ interface IValue extends IApiElement
2221{
2322 /**
2423 * API element that casts to PHP bool.
@@ -66,36 +65,6 @@ interface IValue extends IJsonSerializable
6665 */
6766 public const TYPE_WEEK = 'week ' ;
6867
69- /**
70- * API input element.
71- */
72- public const DIRECTION_INPUT = 'input ' ;
73-
74- /**
75- * API output element.
76- */
77- public const DIRECTION_OUTPUT = 'output ' ;
78-
79- /**
80- * JSON configuration key for type value.
81- */
82- public const JSON_TYPE = 'type ' ;
83-
84- /**
85- * JSON configuration key for name value.
86- */
87- public const JSON_NAME = 'name ' ;
88-
89- /**
90- * JSON configuration key for direction value.
91- */
92- public const JSON_DIRECTION = 'direction ' ;
93-
94- /**
95- * JSON configuration key for is optional flag.
96- */
97- public const JSON_OPTIONAL = 'optional ' ;
98-
9968 /**
10069 * Initialize this class from an array.
10170 * @param array<string, string|bool> $array Array containing the properties of this class.
@@ -114,31 +83,6 @@ public function __construct(array $array);
11483 */
11584 public static function create (string $ type , string $ name , string $ direction , bool $ isOptional ): IValue ;
11685
117- /**
118- * The PHP type of the element.
119- * @return string
120- */
121- public function getType (): string ;
122-
123- /**
124- * The name of the element.
125- * @return string
126- */
127- public function getName (): string ;
128-
129- /**
130- * Get the direction of the parameter.
131- * interface.
132- * @return string
133- */
134- public function getDirection (): string ;
135-
136- /**
137- * Is the element optional?
138- * @return bool
139- */
140- public function isOptional (): bool ;
141-
14286 /**
14387 * Cast a given value according to this class.
14488 * @param float|bool|int|string $value The value to typecast.
0 commit comments