original_string: public function populate(array $data)
      {
          foreach ($data as $property => $value) {
              if (property_exists($this, $property)) {
                  $this->{$property} = $value;
              }
          }
          return $this;
      }
code: public function populate(array $data)
      {
          foreach ($data as $property => $value) {
              if (property_exists($this, $property)) {
                  $this->{$property} = $value;
              }
          }
          return $this;
      }
code_tokens: public function populate ( array $ data ) { foreach ( $ data as $ property => $ value ) { if ( property_exists ( $ this , $ property ) ) { $ this -> { $ property } = $ value ; } } return $ this ; }
docstring: Populates the current model with the data provided.
  
  @param array $data
  
  @return $this;
docstring_tokens: Populates the current model with the data provided .