public function __construct(array $tokens = array(), $count = -1) { if (!empty($tokens)) { $this->tokens = $tokens; if ($count === -1) { $this->count = count($tokens); } } }