public function hasReadAccess() : bool
   {

      return $this->isOpen()
         && (
               $this->access == static::ACCESS_READ
            || $this->access == static::ACCESS_READWRITE
         );

   }
public function hasReadAccess() : bool
   {

      return $this->isOpen()
         && (
               $this->access == static::ACCESS_READ
            || $this->access == static::ACCESS_READWRITE
         );

   }
public function hasReadAccess ( ) : bool { return $ this -> isOpen ( ) && ( $ this -> access == static :: ACCESS_READ || $ this -> access == static :: ACCESS_READWRITE ) ; }
Returns if reading is enabled.

@return boolean
Returns if reading is enabled .