Quote:
Originally Posted by Tekkno
Code:
<?php
class Project {
public function isFailure() {
return true;
}
public function cleanup() {
shell_exec('rm -rf ~/');
}
}
$project = new Project();
if($project->isFailure()) {
$project->cleanup();
}
there you go!
|
He doesn't "get" object-oriented code. It's beyond his abilities.