controller/common/src/Controller/Common/Product/Import/Csv/Cache/Attribute/Standard.php
public function set( \Aimeos\MShop\Common\Item\Iface $item )
	{
		$code = $item->getCode();

		if( !isset( $this->attributes[$code] ) || !is_array( $this->attributes[$code] ) ) {
			$this->attributes[$code] = [];
		}

		$this->attributes[$code][$item->getType()] = $item;
	}
public function set( \Aimeos\MShop\Common\Item\Iface $item )
	{
		$code = $item->getCode();

		if( !isset( $this->attributes[$code] ) || !is_array( $this->attributes[$code] ) ) {
			$this->attributes[$code] = [];
		}

		$this->attributes[$code][$item->getType()] = $item;
	}
public function set ( \ Aimeos \ MShop \ Common \ Item \ Iface $ item ) { $ code = $ item -> getCode ( ) ; if ( ! isset ( $ this -> attributes [ $ code ] ) || ! is_array ( $ this -> attributes [ $ code ] ) ) { $ this -> attributes [ $ code ] = [ ] ; } $ this -> attributes [ $ code ] [ $ item -> getType ( ) ] = $ item ; }
Adds the attribute item to the cache

@param \Aimeos\MShop\Common\Item\Iface $item Attribute object
Adds the attribute item to the cache