src/Repositories/AttributeOptionSwatchRepository.php
public function findOneByEntityTypeIdAndAttributeCodeAndStoreIdAndValueAndType($entityTypeId, $attributeCode, $storeId, $value, $type)
    {

        // the parameters of the EAV attribute option to load
        $params = array(
            MemberNames::ENTITY_TYPE_ID => $entityTypeId,
            MemberNames::ATTRIBUTE_CODE => $attributeCode,
            MemberNames::STORE_ID       => $storeId,
            MemberNames::VALUE          => $value,
            MemberNames::TYPE           => $type
        );

        // load and return the EAV attribute option swatch with the passed parameters
        $this->attributeOptionSwatchByEntityTypeIdAndAttributeCodeAndStoreIdAndValueAndTypeStmt->execute($params);
        return $this->attributeOptionSwatchByEntityTypeIdAndAttributeCodeAndStoreIdAndValueAndTypeStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByEntityTypeIdAndAttributeCodeAndStoreIdAndValueAndType($entityTypeId, $attributeCode, $storeId, $value, $type)
    {

        // the parameters of the EAV attribute option to load
        $params = array(
            MemberNames::ENTITY_TYPE_ID => $entityTypeId,
            MemberNames::ATTRIBUTE_CODE => $attributeCode,
            MemberNames::STORE_ID       => $storeId,
            MemberNames::VALUE          => $value,
            MemberNames::TYPE           => $type
        );

        // load and return the EAV attribute option swatch with the passed parameters
        $this->attributeOptionSwatchByEntityTypeIdAndAttributeCodeAndStoreIdAndValueAndTypeStmt->execute($params);
        return $this->attributeOptionSwatchByEntityTypeIdAndAttributeCodeAndStoreIdAndValueAndTypeStmt->fetch(\PDO::FETCH_ASSOC);
    }
Load's and return's the EAV attribute option swatch with the passed entity type ID, code, store ID, value and type.

@param string  $entityTypeId  The entity type ID of the EAV attribute to load the option swatch for
@param string  $attributeCode The code of the EAV attribute option swatch to load
@param integer $storeId       The store ID of the attribute option swatch to load
@param string  $value         The value of the attribute option swatch to load
@param string  $type          The type of the attribute option swatch to load

@return array The EAV attribute option swatch