@@ -25,6 +25,7 @@ class Stitek extends RW
2525{
2626 /**
2727 * Evidence Path for vsb supported by label.
28+ * @var array<string,string>
2829 */
2930 public static array $ vsbToEvidencePath = [
3031 'vsbAdr ' => 'adresar ' , // Adresář
@@ -56,7 +57,8 @@ class Stitek extends RW
5657 /**
5758 * Convert coma-separated list to array.
5859 *
59- * @param array|string $listRaw
60+ * @param array<mixed>|string $listRaw
61+ * @return array<mixed>
6062 */
6163 public static function listToArray ($ listRaw ): array
6264 {
@@ -80,7 +82,7 @@ public static function listToArray($listRaw): array
8082 *
8183 * @param RO $object
8284 *
83- * @return array
85+ * @return array<mixed>
8486 */
8587 public static function getAvailableLabels ($ object )
8688 {
@@ -112,8 +114,8 @@ public static function getAvailableLabels($object)
112114 * Create New Label for given evidences.
113115 *
114116 * @param string $name Label Name
115- * @param array $evidences Evidence code list ex: ['faktura-vydana','faktura-prijata']
116- * @param array $options Additional Label properties ex: ['kod'=>'EXAMPLE','skupVybKlic'=>'SKUPINA_STITKU']
117+ * @param array<mixed> $evidences Evidence code list ex: ['faktura-vydana','faktura-prijata']
118+ * @param array<mixed> $options Additional Label properties ex: ['kod'=>'EXAMPLE','skupVybKlic'=>'SKUPINA_STITKU']
117119 *
118120 * @return bool success
119121 */
@@ -129,7 +131,7 @@ public function createNew($name, $evidences, $options = []): bool
129131 }
130132
131133 if (!\array_key_exists ('kod ' , $ options )) {
132- $ this ->setDataValue ('kod ' , self ::code ($ name ));
134+ $ this ->setDataValue ('kod ' , \ AbraFlexi \Functions ::code ($ name ));
133135 }
134136
135137 $ this ->setDataValue ('nazev ' , $ name );
0 commit comments