クラスA
class A {
public foo( Apple $apple )
{
//whatever
}
}
YetAnotherFile.php (同じプロジェクト内)
$a = new A;
$a->foo( 42 ); // I really would like a little warning flag here
$a->foo( new Apple(), 'howdy' ); // I really would like...
$a->bar(); // I really would like...
私自身の例が正しいことを願っています。とにかく、あなたが私の主張を理解してくれることを願っています。
ありがとうございました...