src/Callbacks/OptionValueAndSwatchHandler.php
protected function prepareAttributeOptionSwatch($optionId, $storeId, $value, $type)
    {

        // return the prepared option swatch
        return $this->initializeEntity(
            array(
                MemberNames::OPTION_ID => $optionId,
                MemberNames::STORE_ID  => $storeId,
                MemberNames::VALUE     => $value,
                MemberNames::TYPE      => $type
            )
        );
    }
protected function prepareAttributeOptionSwatch($optionId, $storeId, $value, $type)
    {

        // return the prepared option swatch
        return $this->initializeEntity(
            array(
                MemberNames::OPTION_ID => $optionId,
                MemberNames::STORE_ID  => $storeId,
                MemberNames::VALUE     => $value,
                MemberNames::TYPE      => $type
            )
        );
    }
Prepare the attributes of the entity that has to be persisted.

@param integer $optionId The option ID of the swatch to create
@param integer $storeId  The store ID to create the swatch for
@param mixed   $value    The swatch value itself
@param string  $type     The type of the swatch

@return array The prepared option swatch