src/EntitySpecificationRepositoryTrait.php
public function matchScalarResult($specification, ResultModifier $modifier = null)
    {
        $query = $this->getQuery($specification, $modifier);

        return $query->getScalarResult();
    }
public function matchScalarResult($specification, ResultModifier $modifier = null)
    {
        $query = $this->getQuery($specification, $modifier);

        return $query->getScalarResult();
    }
public function matchScalarResult ( $ specification , ResultModifier $ modifier = null ) { $ query = $ this -> getQuery ( $ specification , $ modifier ) ; return $ query -> getScalarResult ( ) ; }
Get scalar result when you match with a Specification.

@param Filter|QueryModifier $specification
@param ResultModifier|null  $modifier

@throw Exception\NonUniqueException  If more than one result is found
@throw Exception\NoResultException   If no results found

@return mixed
Get scalar result when you match with a Specification .