This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define('HOUR', 3600); | |
| define('MINUTE', 60); | |
| interface Time | |
| { | |
| public const HOUR = 3600; | |
| public const MINUTE = 60; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Hour | |
| { | |
| /** | |
| * Returns number of seconds in one hour | |
| */ | |
| public function toInt(): int | |
| { | |
| return 3600; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AppBundle; | |
| use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass; | |
| use Symfony\Component\DependencyInjection\ContainerBuilder; | |
| use Symfony\Component\HttpKernel\Bundle\Bundle; | |
| class AppBundle extends Bundle | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public Integer max(Integer a, Integer b) { | |
| return new If( | |
| new GreaterThan(a, b), | |
| a, b | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function alternate() | |
| { | |
| static $i; | |
| if (func_num_args() === 0) { | |
| $i = 0; | |
| return ''; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AppBundle\Entity\User\EmailAddress: | |
| type: embeddable | |
| fields: | |
| address: | |
| column: email | |
| type: string | |
| length: '250' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AppBundle\Entity\User | |
| class EmailAddress | |
| { | |
| private $address; | |
| public function __construct($address) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function() { | |
| var centerAbsolute = function () { | |
| $('.absolute-center').css({ | |
| position:'absolute', | |
| left: ($(window).width() - $('.absolute-center').outerWidth())/2, | |
| top: ($(window).height() - $('.absolute-center').outerHeight())/2 | |
| }); | |
| } | |
| centerAbsolute(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Codeception\Module; | |
| use Codeception\Module; | |
| use Codeception\PHPUnit\AssertWrapper; | |
| use Closure; | |
| class DevHelper extends Module | |
| { | |
| private $testSubject; |
NewerOlder