Skip to content

Instantly share code, notes, and snippets.

View whizark's full-sized avatar
🏞️
Working from home

Whizark whizark

🏞️
Working from home
View GitHub Profile
@whizark
whizark / constructorTrait.php
Created July 10, 2014 03:18
Constructor trait #test #php
<?php
interface PersonInterface
{
public function getFullname();
}
trait PersonTrait
{
private $name;
@whizark
whizark / InterfaceAndTrait.php
Last active August 29, 2015 14:03
Interface and Trait #test #php
<?php
interface FlyableThingInterface
{
public function fly();
}
interface AnimalInterface
{
public function eat();
}
@whizark
whizark / extendingTraits.php
Created July 10, 2014 01:22
Extending Traits #test #php
<?php
trait FirstTrait
{
public function firstMethod() {
echo 'This is the firstMethod()' . PHP_EOL;
}
}
trait SecondTrait
{