public function find($data) { foreach ($data as $key => $value) { if ($this->{$key} === $value) { return $this; } } }