Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | trait FileLinkFormatConfigurationTrait |
||
21 | { |
||
22 | 18 | private static function addFileLinkFormatConfigurationNode(NodeBuilder $nodeBuilder, ?string $defaultFileLinkFormat): NodeBuilder |
|
23 | { |
||
24 | return $nodeBuilder |
||
|
|||
25 | 18 | ->scalarNode('file_link_format') |
|
26 | 18 | ->defaultValue($defaultFileLinkFormat) |
|
27 | 18 | ->end(); |
|
28 | } |
||
29 | |||
30 | 18 | private static function addFileLinkFormatConfigurationNodeFromDefaultsConfiguration(NodeBuilder $nodeBuilder, DefaultsConfigurationModel $defaultsConfiguration): NodeBuilder |
|
31 | { |
||
32 | 18 | return self::addFileLinkFormatConfigurationNode($nodeBuilder, $defaultsConfiguration->getFileLinkFormat()); |
|
33 | } |
||
34 | |||
35 | private static function getConfiguredFileLinkFormat(ActionConfiguration $actionConfiguration): ?string |
||
40 | } |
||
41 | } |
||
42 |