public function bind(array $data)
    {
        foreach ($data as $property => $value) {
            if ($this->has($property)) {
                $this->$property = $value;
            }
        }
    }
public function bind(array $data)
    {
        foreach ($data as $property => $value) {
            if ($this->has($property)) {
                $this->$property = $value;
            }
        }
    }
public function bind ( array $ data ) { foreach ( $ data as $ property => $ value ) { if ( $ this -> has ( $ property ) ) { $ this -> $ property = $ value ; } } }
Bind data to the entity.

@param   array $data The data for the entity as a list of key-value pairs

@return  void
Bind data to the entity .