Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // interface BasicContract
- interface BasicContract
- {
- public function save(): bool;
- }
- // class Basic
- final class Basic implements BasicContract
- {
- final public function save(): bool
- {
- return true;
- }
- }
- // function resolve
- function resolve(BasicContract $basic)
- {
- return $basic->save();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement