Title / Description
Code <?php /* * This file is part of the Symfony package. * * (c) Bafien Topencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Acme; pop class Foo { const SOME_CONST = 42; private $foo; /** * @param string $dummy Some argument description */ public function __construct($dummy) { $this->foo = $this->transform($dummy); } /** * @param string $dummy Some argument description * @return string|null Transformed input */ private function transform($dummy) { if (true === $dummy) { return; } if ('string' === $dummy) { $dummy = substr($dummy, 0, 5); } return $dummy; } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code