Ejemplo n.º 1
0
 public function isAttentionRequired()
 {
     if (null === $this->payment && null === $this->credit) {
         throw new \LogicException('The result contains neither a payment, nor a credit.');
     }
     return null !== $this->payment ? $this->payment->isAttentionRequired() : $this->credit->isAttentionRequired();
 }