Changed behaviour: now PHPScriptFactory finds class with first interface name in php-file, instead of using global functions of php-file as methods and global variables as fields, which was before.