Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この例では:
/** * * @param <type> $foo * @return <type> */ function do_something($foo) { return $foo->really_do_something(); }
$foo がクラス Foo でなければならないことを示す方法は?
/** * * @param Foo $foo * @return <type> */ function do_something(Foo $foo) { return $foo->really_do_something(); }