<?php
function onErrorFunction(){
echo "Enter correct value";
}
set_error_handler('onErrorFunction');
/*$user1 = new User();
$user1->firstName = "Alex";
$user1->secondName = "Jones";
*/
class User{
public $firstName;
public $secondName;
}
function getFullName(User $user){
}
echo getFullName('123');