code: public static function readFile(/*# string */ $path)
      {
          // check file
          static::checkPath($path);
  
          // read file
          $data = static::readFromFile($path);
  
          // exception on error
          if (false === $data || null === $data) {
              throw new RuntimeException(static::getError($path));
          }
  
          return $data;
      }
docs: {@inheritDoc}