src/Repositories/EntityAttributeRepository.php
public function findOneByEntityTypeIdAndAttributeIdAndAttributeSetIdAndAttributeGroupId($entityTypeId, $attributeId, $attributeSetId, $attributeGroupId)
    {

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE_ID     => $entityTypeId,
            MemberNames::ATTRIBUTE_ID       => $attributeId,
            MemberNames::ATTRIBUTE_SET_ID   => $attributeSetId,
            MemberNames::ATTRIBUTE_GROUP_ID => $attributeGroupId
        );

        // load and return the EAV entity attribute with the passed params
        $this->entityAttributeByEntityTypeIdAndAttributeIdAndAttributeSetIdAndAttributeGroupIdStmt->execute($params);
        return $this->entityAttributeByEntityTypeIdAndAttributeIdAndAttributeSetIdAndAttributeGroupIdStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByEntityTypeIdAndAttributeIdAndAttributeSetIdAndAttributeGroupId($entityTypeId, $attributeId, $attributeSetId, $attributeGroupId)
    {

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE_ID     => $entityTypeId,
            MemberNames::ATTRIBUTE_ID       => $attributeId,
            MemberNames::ATTRIBUTE_SET_ID   => $attributeSetId,
            MemberNames::ATTRIBUTE_GROUP_ID => $attributeGroupId
        );

        // load and return the EAV entity attribute with the passed params
        $this->entityAttributeByEntityTypeIdAndAttributeIdAndAttributeSetIdAndAttributeGroupIdStmt->execute($params);
        return $this->entityAttributeByEntityTypeIdAndAttributeIdAndAttributeSetIdAndAttributeGroupIdStmt->fetch(\PDO::FETCH_ASSOC);
    }
Return's the EAV entity attribute with the passed entity type, attribute, attribute set and attribute group ID.

@param integer $entityTypeId     The ID of the EAV entity attribute's entity type to return
@param integer $attributeId      The ID of the EAV entity attribute's attribute to return
@param integer $attributeSetId   The ID of the EAV entity attribute's attribute set to return
@param integer $attributeGroupId The ID of the EAV entity attribute's attribute group to return

@return array The EAV entity attribute