/** * @param string $edn * @param array $tagHandlers * * @return mixed */ protected static function run($method, $edn, array $tagHandlers) { $tokenizer = new Tokenizer($edn); $decoder = new Decoder($tokenizer); foreach ($tagHandlers as $tagHandler) { $decoder->addTagHandler($tagHandler); } return $decoder->{$method}(); }
public function decode(Decoder $decoder) { $element = $decoder->decode(); return array($element * 2); }
/** * {@inheritDoc} */ public function decode(Decoder $decoder) { return $this->convert($decoder->decode()); }
/** * {@inheritDoc} */ public function decode(Decoder $decoder) { return array($decoder->decodeAll(Token::BRACE_CLOSE)); }