$polygon = new Polygon(['name'=>'poly','map'=>'map']);
$polygon->setLatLngs([$poly1, $poly2, $poly3, $poly4]);
$polygon->clientEvents = ['click' => "function(e) {alert(1)}"];
but return wrong js without event:
map.addLayer(var poly = L.polygon([[50.07300647938297,31.440094543457036],[50.07300647938297,31.438094543457034],[50.074006479382966,31.438094543457034],[50.074006479382966,31.440094543457036]],