getError() protected method

protected getError ( )
示例#1
0
 public function onError(Promisable $promised)
 {
     printf("Oh noes: %s\n", (string) $promised->getError());
 }
示例#2
0
文件: dom.php 项目: krakjoe/promises
 public function onError(Promisable $promised)
 {
     $promised->getLogger()->log("Oh noes: %s\n", (string) $promised->getError());
     /* allow the object to be collected */
     $promised->setGarbage(true);
 }