Skip to content

Instantly share code, notes, and snippets.

View parap's full-sized avatar

Alex parap

  • Denmark
View GitHub Profile
protected function displayResponse()
{
// $this->
// (new EchoFormatApi())->output($this->request, $this->response);
$parser = new TemplateNameParser();
$loader = new FilesystemLoader(
array(
SYS_LAYOUTS_PATH . '/Pages/%name%.php',
@parap
parap / gist:4685904
Created January 31, 2013 20:00
PHP Network class for Olexander Bondarenko
<?php
/**
* @task Write a php class Network.
* The constructor should take a positive integer value indicating the number of elements in the set.
* Passing in an invalid value should throw InvalidArgumentException.
*
* The class should also provide two public methods, connect and query.
*
* The first method, connect will take two integers indicating the elements to connect.
@parap
parap / Network PHP file
Created January 31, 2013 19:56
Test task for Olexander Bondarenko
<?php
/**
* @task Write a php class Network.
* The constructor should take a positive integer value indicating the number of elements in the set.
* Passing in an invalid value should throw InvalidArgumentException.
*
* The class should also provide two public methods, connect and query.
*
* The first method, connect will take two integers indicating the elements to connect.
<?php
class A {
public function test() {
$this->abc[] = 'test';
}
}
class B extends A {
public $abc = array('pre-test');
}
<?php
echo 'test';