original_string: public function extract(array $properties, $onlyDirty = false)
      {
          $result = [];
          foreach ($properties as $property) {
              if (!$onlyDirty || $this->isDirty($property)) {
                  $result[$property] = $this->get($property);
              }
          }
  
          return $result;
      }
code: public function extract(array $properties, $onlyDirty = false)
      {
          $result = [];
          foreach ($properties as $property) {
              if (!$onlyDirty || $this->isDirty($property)) {
                  $result[$property] = $this->get($property);
              }
          }
  
          return $result;
      }
code_tokens: public function extract ( array $ properties , $ onlyDirty = false ) { $ result = [ ] ; foreach ( $ properties as $ property ) { if ( ! $ onlyDirty || $ this -> isDirty ( $ property ) ) { $ result [ $ property ] = $ this -> get ( $ property ) ; } } return $ result ; }
docstring: Returns an array with the requested properties
  stored in this entity, indexed by property name
  
  @param array $properties list of properties to be returned
  @param bool $onlyDirty Return the requested property only if it is dirty
  @return array
docstring_tokens: Returns an array with the requested properties stored in this entity indexed by property name