original_string: public function val($val = null, $store = true)
      {
          if (\func_num_args()) {
              // setting
              $this->setValue($val, $store);
          } else {
              if ($this->props['getValFormatted'] && !\in_array('getValFormatted', $this->callStack)) {
                  $this->callStack[] = 'getValFormatted';
                  $return = \call_user_func($this->props['getValFormatted'], $this);
                  ArrayUtil::removeVal($this->callStack, 'getValFormatted');
                  return $return;
              } else {
                  return $this->valRaw();
              }
          }
      }
code: public function val($val = null, $store = true)
      {
          if (\func_num_args()) {
              // setting
              $this->setValue($val, $store);
          } else {
              if ($this->props['getValFormatted'] && !\in_array('getValFormatted', $this->callStack)) {
                  $this->callStack[] = 'getValFormatted';
                  $return = \call_user_func($this->props['getValFormatted'], $this);
                  ArrayUtil::removeVal($this->callStack, 'getValFormatted');
                  return $return;
              } else {
                  return $this->valRaw();
              }
          }
      }
code_tokens: public function val ( $ val = null , $ store = true ) { if ( \ func_num_args ( ) ) { // setting $ this -> setValue ( $ val , $ store ) ; } else { if ( $ this -> props [ 'getValFormatted' ] && ! \ in_array ( 'getValFormatted' , $ this -> callStack ) ) { $ this -> callStack [ ] = 'getValFormatted' ; $ return = \ call_user_func ( $ this -> props [ 'getValFormatted' ] , $ this ) ; ArrayUtil :: removeVal ( $ this -> callStack , 'getValFormatted' ) ; return $ return ; } else { return $ this -> valRaw ( ) ; } } }
docstring: Get or set field's value
  If getting, will return
  + formatted value if field has getValFormatted callable
  + raw value otherwise
  
  @param mixed   $val   (optional) new value
  @param boolean $store (true) store value?
  
  @return mixed
docstring_tokens: Get or set field s value If getting will return + formatted value if field has getValFormatted callable + raw value otherwise