original_string: public function getAdded($asArray = true)
      {
          $return = array();
          if ($asArray && $this->added) {
              foreach ($this->added as $file) {
                  $return[] = $file->toArray();
              }
          }
  
          return $asArray ? $return : $this->added;
      }
code: public function getAdded($asArray = true)
      {
          $return = array();
          if ($asArray && $this->added) {
              foreach ($this->added as $file) {
                  $return[] = $file->toArray();
              }
          }
  
          return $asArray ? $return : $this->added;
      }
code_tokens: public function getAdded ( $ asArray = true ) { $ return = array ( ) ; if ( $ asArray && $ this -> added ) { foreach ( $ this -> added as $ file ) { $ return [ ] = $ file -> toArray ( ) ; } } return $ asArray ? $ return : $ this -> added ; }
docstring: get Added.
  
  @param bool $asArray
  
  @return array|FileInfo[]
docstring_tokens: get Added .