SHARE
TWEET

Untitled

a guest Dec 20th, 2019 33 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. //...внутри какого-то класса скраппера
  4. public function getChapters(BookInterface $book) {
  5.     if (!$book instanceof LazyBookInterface) {
  6.         /** @var LazyBookInterface $book */
  7.         $book = $this->findByName($book->getName());
  8.     }
  9.     $book->lazyBookInterfaceMethod();
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top