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 | |
private function waitForPageToLoad($pageName, $timeout = 10) | |
{ | |
$count = 10; | |
while (0 !== stripos($this->getSession()->getCurrentUrl(), $pageName)) { | |
sleep(1); | |
if (0 === $count--) { |
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 TreeNode | |
{ | |
private $place; | |
private $children = []; | |
public function __construct($place) | |
{ |
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 TreeNode | |
{ | |
private $place; | |
private $children = []; | |
public function __construct($place) | |
{ |
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 | |
trait MyTrait | |
{ | |
public function theFunc() | |
{ | |
echo 'Trait func'; | |
} | |
} |
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 Test; | |
class MyClass | |
{ | |
public function someFunction( | |
MyType $param1, | |
LongTypeName $param2, | |
array $param3 |
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 | |
public function getFileScanner($fileName) | |
{ | |
if ($this->fileScanner && $this->fileScanner->getFile() == $fileName) { | |
return $this->fileScanner; | |
} | |
$this->fileScanner = new FileScanner($fileName); |
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 BaseClass | |
{ | |
private $var; | |
public function __construct($injector) | |
{ | |
$this->var = $injector; | |
} |
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 | |
/* | |
* This is the setup required to make an annotation builder able to load | |
* a hydrator from annotation via the HydratorManager. | |
*/ | |
$annotationBuilder = new \Zend\Form\Annotation\AnnotationBuilder(); | |
$factory = new \Zend\Form\Factory($serviceLocator->get('FormElementManager')); | |
$annotationBuilder->setFormFactory($factory); |
NewerOlder