src/Tokenizer/Tokens.php
public function countTokenKind($tokenKind)
    {
        if (self::isLegacyMode()) {
            throw new \RuntimeException(sprintf('%s is not available in legacy mode.', __METHOD__));
        }

        return isset($this->foundTokenKinds[$tokenKind]) ? $this->foundTokenKinds[$tokenKind] : 0;
    }
public function countTokenKind($tokenKind)
    {
        if (self::isLegacyMode()) {
            throw new \RuntimeException(sprintf('%s is not available in legacy mode.', __METHOD__));
        }

        return isset($this->foundTokenKinds[$tokenKind]) ? $this->foundTokenKinds[$tokenKind] : 0;
    }
public function countTokenKind ( $ tokenKind ) { if ( self :: isLegacyMode ( ) ) { throw new \ RuntimeException ( sprintf ( '%s is not available in legacy mode.' , __METHOD__ ) ) ; } return isset ( $ this -> foundTokenKinds [ $ tokenKind ] ) ? $ this -> foundTokenKinds [ $ tokenKind ] : 0 ; }
@param int|string $tokenKind

@return int
@param int|string $tokenKind