1. ‹#›
PHP de
フィールドインジェクション
第84回 PHP勉強会
!
竹澤 有貴
The title of the presentation can go here, and it can span nearly the width of the page Company Proprietary and Confidential
10. interface SomethingInterface
{
ytake
public function perform();
}
class Something implements SomethingInterface
{
public function perform()
{
return 'hello';
}
}
11. class Perform
{
ytake
public function __construct(
SomethingInterface $something
) {
$this->something = $something;
}
public function something()
{
return $this->something->perform();
}
}
new Perform(new Something);