original_string: public function getPageView($url, $properties = [])
      {
          if (empty($url)) {
              throw new Exception('url cannot be empty');
          }
  
          $props = [
              PayloadProperties::URL => $url
          ];
  
          if ($properties) {
              $props[PayloadProperties::PROPERTIES] = $properties;
          }
  
          return $this->getTrackPayload(ActionTypes::PAGE_VIEWED, $props);
      }
code: public function getPageView($url, $properties = [])
      {
          if (empty($url)) {
              throw new Exception('url cannot be empty');
          }
  
          $props = [
              PayloadProperties::URL => $url
          ];
  
          if ($properties) {
              $props[PayloadProperties::PROPERTIES] = $properties;
          }
  
          return $this->getTrackPayload(ActionTypes::PAGE_VIEWED, $props);
      }
code_tokens: public function getPageView ( $ url , $ properties = [ ] ) { if ( empty ( $ url ) ) { throw new Exception ( 'url cannot be empty' ) ; } $ props = [ PayloadProperties :: URL => $ url ] ; if ( $ properties ) { $ props [ PayloadProperties :: PROPERTIES ] = $ properties ; } return $ this -> getTrackPayload ( ActionTypes :: PAGE_VIEWED , $ props ) ; }
docstring: Generates payload for page view events
  
  @param $url
  @param array $properties
  @return array
  @throws Exception
docstring_tokens: Generates payload for page view events