for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CondParse;
class LexerTokenFactory
{
/**
* @param string $token
* @param mixed $value
* @return LexerToken
*/
public function buildLexerToken($token, $value)
// TODO: some flyweight like pattern?
return new LexerToken($token, $value);
}