-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applied suggestions about phpdoc and style
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
/** | ||
* @author Jean-François Lépine <[email protected]> | ||
* | ||
* | ||
* @experimental This class is not covered by the BC promise yet | ||
*/ | ||
final class ComponentPropertiesExtractor | ||
|
@@ -28,17 +28,19 @@ public function __construct( | |
} | ||
|
||
/** | ||
* Returns a list of properties from a Component. | ||
* Returns a list of properties from a Component. | ||
* | ||
* Warning: We do not recommend using this method at runtime, as it is rather slow. | ||
* | ||
* @return array<string, array{display: string, name: string, type: string, default: mixed}> | ||
*/ | ||
public function getComponentProperties(ComponentMetadata $metadata): array | ||
{ | ||
if ($medata->isAnonymous()) { | ||
return $this->getAnonymousComponentProperties($medata); | ||
if ($metadata->isAnonymous()) { | ||
return $this->getAnonymousComponentProperties($metadata); | ||
} | ||
|
||
return $this->getNonAnonymousComponentProperties($medata); | ||
return $this->getNonAnonymousComponentProperties($metadata); | ||
} | ||
|
||
/** | ||
|