original_string: public function slug($var = null)
      {
          if ($var !== null && $var !== '') {
              $this->slug = $var;
          }
  
          if (empty($this->slug)) {
              $this->slug = $this->adjustRouteCase(preg_replace(PAGE_ORDER_PREFIX_REGEX, '', $this->folder)) ?: null;
          }
  
          return $this->slug;
      }
code: public function slug($var = null)
      {
          if ($var !== null && $var !== '') {
              $this->slug = $var;
          }
  
          if (empty($this->slug)) {
              $this->slug = $this->adjustRouteCase(preg_replace(PAGE_ORDER_PREFIX_REGEX, '', $this->folder)) ?: null;
          }
  
          return $this->slug;
      }
code_tokens: public function slug ( $ var = null ) { if ( $ var !== null && $ var !== '' ) { $ this -> slug = $ var ; } if ( empty ( $ this -> slug ) ) { $ this -> slug = $ this -> adjustRouteCase ( preg_replace ( PAGE_ORDER_PREFIX_REGEX , '' , $ this -> folder ) ) ? : null ; } return $ this -> slug ; }
docstring: Gets and Sets the slug for the Page. The slug is used in the URL routing. If not set it uses
  the parent folder from the path
  
  @param  string $var the slug, e.g. 'my-blog'
  
  @return string      the slug
docstring_tokens: Gets and Sets the slug for the Page . The slug is used in the URL routing . If not set it uses the parent folder from the path