Example #1
0
 public function open(AccessMode $mode)
 {
     if ($mode->allowsRead()) {
         throw new \LogicException(sprintf('The stream "%s" is not readable.', 'php://output'));
     }
     return parent::open($mode);
 }
Example #2
0
 public function isReadable()
 {
     $this->assertOpen();
     return $this->mode->allowsRead();
 }