src/Db/Query/Count/CountAbstract.php
public function setField($pField, $pDistinct = false)
    {
        Agl::validateParams(array(
            'String' => $pField,
            'Bool'         => $pDistinct
        ));

        $this->_field = array(
            static::FIELD_NAME     => $pField,
            static::FIELD_DISTINCT => $pDistinct
        );
        return $this;
    }
public function setField($pField, $pDistinct = false)
    {
        Agl::validateParams(array(
            'String' => $pField,
            'Bool'         => $pDistinct
        ));

        $this->_field = array(
            static::FIELD_NAME     => $pField,
            static::FIELD_DISTINCT => $pDistinct
        );
        return $this;
    }
public function setField ( $ pField , $ pDistinct = false ) { Agl :: validateParams ( array ( 'String' => $ pField , 'Bool' => $ pDistinct ) ) ; $ this -> _field = array ( static :: FIELD_NAME => $ pField , static :: FIELD_DISTINCT => $ pDistinct ) ; return $ this ; }
Set the main field of the count query.

@param array $pField Field name
@param bool $pDistinct Don't count duplicated fields
@return InsertAbstract
Set the main field of the count query .