src/Repositories/AttributeRepository.php
public function findOneByEntityIdAndAttributeCode($entityTypeId, $attributeCode)
    {

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE_ID => $entityTypeId,
            MemberNames::ATTRIBUTE_CODE => $attributeCode
        );

        // load and return the EAV attribute with the passed params
        $this->attributeByEntityTypeAndAttributeCodeStmt->execute($params);
        return $this->attributeByEntityTypeAndAttributeCodeStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByEntityIdAndAttributeCode($entityTypeId, $attributeCode)
    {

        // initialize the params
        $params = array(
            MemberNames::ENTITY_TYPE_ID => $entityTypeId,
            MemberNames::ATTRIBUTE_CODE => $attributeCode
        );

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

@param integer $entityTypeId  The entity type ID of the EAV attribute to return
@param string  $attributeCode The code of the EAV attribute to return

@return array The EAV attribute