@@ -21,13 +21,13 @@ class ConfigLexiconEntry {
2121	/** @experimental 32.0.0 */ 
2222	public  const  RENAME_INVERT_BOOLEAN  = 1 ;
2323
24- 	private  string  $ definition  = '' ;
24+ 	private  array | string  $ definition  = '' ;
2525	private  ?string  $ default  = null ;
2626
2727	/** 
2828	 * @param string $key config key, can only contain alphanumerical chars and -._ 
2929	 * @param ValueType $type type of config value 
30- 	 * @param string $definition optional description of config key available when using occ command 
30+ 	 * @param array| string $definition optional description of config key available when using occ command 
3131	 * @param bool $lazy set config value as lazy 
3232	 * @param int $flags set flags 
3333	 * @param string|null $rename previous config key to migrate config value from 
@@ -41,7 +41,7 @@ public function __construct(
4141		private  readonly  string  $ key ,
4242		private  readonly  ValueType   $ type ,
4343		private  null |string |int |float |bool |array |Closure   $ defaultRaw  = null ,
44- 		string  $ definition  = '' ,
44+ 		string | array  $ definition  = '' ,
4545		private  readonly  bool  $ lazy  = false ,
4646		private  readonly  int  $ flags  = 0 ,
4747		private  readonly  bool  $ deprecated  = false ,
@@ -183,9 +183,34 @@ public function convertToString(string|int|float|bool|array $entry): string {
183183	 * @experimental 31.0.0 
184184	 */ 
185185	public  function  getDefinition (): string  {
186- 		return  $ this  ->definition ;
186+ 		if  (is_string ($ this  ->definition )) {
187+ 			return  $ this  ->definition ;
188+ 		}
189+ 
190+ 		return  (string )($ this  ->definition ['definition ' ] ?? '' );
191+ 	}
192+ 
193+ 	/** 
194+ 	 * returns eventual note 
195+ 	 * 
196+ 	 * @return string 
197+ 	 * @experimental 32.0.0 
198+ 	 */ 
199+ 	public  function  getNote (): string  {
200+ 		return  (string )($ this  ->definition ['note ' ] ?? '' );
187201	}
188202
203+ 	/** 
204+ 	 * returns eventual warning 
205+ 	 * 
206+ 	 * @return string 
207+ 	 * @experimental 32.0.0 
208+ 	 */ 
209+ 	public  function  getWarning (): string  {
210+ 		return  (string )($ this  ->definition ['warning ' ] ?? '' );
211+ 	}
212+ 
213+ 
189214	/** 
190215	 * returns if config key is set as lazy 
191216	 * 
0 commit comments