PHP: moved the 'flags' property to PHPEntityBase
PHP: correctly handle interface parsing
PHP: added unit testing to test parsing interface (and implementing it)