Move the C&S thing into the attic

This commit is contained in:
Dan Buch
2015-07-25 14:41:14 -04:00
parent fc144fc403
commit af31512251
11 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
class Person {
public $name;
public function wave()
{
return $this->name. ' is waving';
}
public function waveAt(Person $waveTarget)
{
return $this->name . ' waves at ' . $waveTarget->name;
}
}
$boo = new Person();
$boo->name = 'Boo';
var_dump($boo->wave());
$hay = new Person();
$hay->name = 'Hay';
var_dump($hay->wave());
var_dump($boo->waveAt($hay));