@@ -65,7 +65,7 @@ |
||
65 | 65 | * Creates the catalog item objects. |
66 | 66 | * |
67 | 67 | * @param array $itemMap Associative list of catalog ID / tree node pairs |
68 | - * @param array $domains List of domains (e.g. text, media) whose items should be attached to the catalog items |
|
68 | + * @param string[] $domains List of domains (e.g. text, media) whose items should be attached to the catalog items |
|
69 | 69 | * @param string $prefix Domain prefix |
70 | 70 | * @param array $local Associative list of IDs as keys and the associative array of items as values |
71 | 71 | * @param array $local2 Associative list of IDs as keys and the associative array of items as values |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * Adds a new property item or overwrite an existing one |
29 | 29 | * |
30 | 30 | * @param \Aimeos\MShop\Product\Item\Property\Iface $item New or existing property item |
31 | - * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining |
|
31 | + * @return Traits Self object for method chaining |
|
32 | 32 | */ |
33 | 33 | public function addPropertyItem( \Aimeos\MShop\Product\Item\Property\Iface $item ) |
34 | 34 | { |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Removes an existing property item |
44 | 44 | * |
45 | - * @param \Aimeos\MShop\Product\Item\Property\Iface $item Existing property item |
|
46 | - * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining |
|
45 | + * @param \Aimeos\MShop\Common\Item\Property\Iface $item Existing property item |
|
46 | + * @return Traits Self object for method chaining |
|
47 | 47 | * @throws \Aimeos\MShop\Exception If given property item isn't found |
48 | 48 | */ |
49 | 49 | public function deletePropertyItem( \Aimeos\MShop\Product\Item\Property\Iface $item ) |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * Removes a list of existing property items |
68 | 68 | * |
69 | 69 | * @param \Aimeos\MShop\Common\Item\Property\Iface[] $items Existing property items |
70 | - * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining |
|
70 | + * @return Traits Self object for method chaining |
|
71 | 71 | * @throws \Aimeos\MShop\Exception If a property item isn't found |
72 | 72 | */ |
73 | 73 | public function deletePropertyItems( array $items ) |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function addPropertyItem( \Aimeos\MShop\Product\Item\Property\Iface $item ) |
34 | 34 | { |
35 | - $id = $item->getId() ?: 'id-' . $this->propMax++; |
|
35 | + $id = $item->getId() ?: 'id-'.$this->propMax++; |
|
36 | 36 | $this->propItems[$id] = $item; |
37 | 37 | |
38 | 38 | return $this; |
@@ -52,9 +52,9 @@ |
||
52 | 52 | /** |
53 | 53 | * Adds new, updates existing and deletes removed property items |
54 | 54 | * |
55 | - * @param \Aimeos\MShop\Common\Item\ListRef\Iface $item Item with referenced items |
|
55 | + * @param \Aimeos\MShop\Common\Item\PropertyRef\Iface $item Item with referenced items |
|
56 | 56 | * @param string $domain Domain of the calling manager |
57 | - * @return \Aimeos\MShop\Common\Item\ListRef\Iface Item with saved referenced items |
|
57 | + * @return \Aimeos\MShop\Common\Item\PropertyRef\Iface Item with saved referenced items |
|
58 | 58 | */ |
59 | 59 | protected function savePropertyItems( \Aimeos\MShop\Common\Item\PropertyRef\Iface $item, $domain ) |
60 | 60 | { |
@@ -36,8 +36,8 @@ |
||
36 | 36 | $propManager = $this->getObject()->getSubManager( 'property' ); |
37 | 37 | |
38 | 38 | $propSearch = $propManager->createSearch(); |
39 | - $propSearch->setConditions( $propSearch->compare( '==', $domain . '.property.parentid', $parentIds ) ); |
|
40 | - $propSearch->setSortations( [$propSearch->sort( '+', $domain . '.property.type.position' )] ); |
|
39 | + $propSearch->setConditions( $propSearch->compare( '==', $domain.'.property.parentid', $parentIds ) ); |
|
40 | + $propSearch->setSortations( [$propSearch->sort( '+', $domain.'.property.type.position' )] ); |
|
41 | 41 | $propSearch->setSlice( 0, 0x7fffffff ); |
42 | 42 | |
43 | 43 | foreach( $propManager->searchItems( $propSearch ) as $id => $propItem ) { |