A nice little puzzle in which you need to write the code that returns true when executed in the environment described in each level. URL: https://returntrue.win.
true
function() { return 'true'; }
true
0
<?php | |
declare(strict_types=1); | |
namespace Thunder\Entity; | |
/* final */ class Account | |
{ | |
/** @var resource */ | |
private $id; | |
public function __construct(AccountId $id) |
A nice little puzzle in which you need to write the code that returns true when executed in the environment described in each level. URL: https://returntrue.win.
true
function() { return 'true'; }
true
0
vendor |
<?php | |
interface IFoo { | |
public function getValue(); | |
} | |
trait FooTrait { | |
private $value; | |
public function __construct($value) { | |
$this->value = $value; |
<?php | |
namespace PHPers; | |
use GuzzleHttp\Client as GuzzleClient; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
// Entities: Just a place to store runtime data |
<?php | |
namespace Thunder\Bundle\SthBundle; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller as ControllerBase; | |
class Controller extends ControllerBase | |
{ | |
public function usefulToolThatDoesNotFitIntoService() | |
{ | |
return $computedUsefulValue; |
<?php | |
use Symfony\Component\Console\Application as BaseApplication; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\HttpKernel\KernelInterface; | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
use Symfony\Bundle\FrameworkBundle\Console\Shell; |