{"action":"created","issue":{"url":"https://api.github.com/repos/RealyUniqueName/haxe/issues/11","repository_url":"https://api.github.com/repos/RealyUniqueName/haxe","labels_url":"https://api.github.com/repos/RealyUniqueName/haxe/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/RealyUniqueName/haxe/issues/11/comments","events_url":"https://api.github.com/repos/RealyUniqueName/haxe/issues/11/events","html_url":"https://github.com/RealyUniqueName/haxe/issues/11","id":171004426,"number":11,"title":"Enums","user":{"login":"RealyUniqueName","id":3155708,"avatar_url":"https://avatars.githubusercontent.com/u/3155708?v=3","gravatar_id":"","url":"https://api.github.com/users/RealyUniqueName","html_url":"https://github.com/RealyUniqueName","followers_url":"https://api.github.com/users/RealyUniqueName/followers","following_url":"https://api.github.com/users/RealyUniqueName/following{/other_user}","gists_url":"https://api.github.com/users/RealyUniqueName/gists{/gist_id}","starred_url":"https://api.github.com/users/RealyUniqueName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealyUniqueName/subscriptions","organizations_url":"https://api.github.com/users/RealyUniqueName/orgs","repos_url":"https://api.github.com/users/RealyUniqueName/repos","events_url":"https://api.github.com/users/RealyUniqueName/events{/privacy}","received_events_url":"https://api.github.com/users/RealyUniqueName/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-13T11:09:52Z","updated_at":"2016-08-13T12:22:30Z","closed_at":null,"body":"Haxe\r\n```haxe\r\nenum Some {\r\n    var One;\r\n    var Two(arg:String);\r\n}\r\n```\r\nPHP\r\n```php\r\nfinal class Some extends Enum {\r\n    //Need to somehow provide a list of enum constructors for further implementation of `haxe.EnumTools`\r\n    static protected $constructors = ['One', 'Two'];\r\n\r\n    //Enum constructors without arguments become singletones\r\n    static private $_One;\r\n\r\n\r\n    static public function One () {\r\n        if (!self::$_One) {            \r\n            self::$_One = new self(__FUNCTION__, []); //__construct is implemented in Enum class\r\n        }\r\n        return self::$_One\r\n    }  \r\n\r\n\r\n    static public function Two ($arguments) {\r\n        return new self(__FUNCTION__, $arguments);\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/RealyUniqueName/haxe/issues/comments/239618207","html_url":"https://github.com/RealyUniqueName/haxe/issues/11#issuecomment-239618207","issue_url":"https://api.github.com/repos/RealyUniqueName/haxe/issues/11","id":239618207,"user":{"login":"RealyUniqueName","id":3155708,"avatar_url":"https://avatars.githubusercontent.com/u/3155708?v=3","gravatar_id":"","url":"https://api.github.com/users/RealyUniqueName","html_url":"https://github.com/RealyUniqueName","followers_url":"https://api.github.com/users/RealyUniqueName/followers","following_url":"https://api.github.com/users/RealyUniqueName/following{/other_user}","gists_url":"https://api.github.com/users/RealyUniqueName/gists{/gist_id}","starred_url":"https://api.github.com/users/RealyUniqueName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealyUniqueName/subscriptions","organizations_url":"https://api.github.com/users/RealyUniqueName/orgs","repos_url":"https://api.github.com/users/RealyUniqueName/repos","events_url":"https://api.github.com/users/RealyUniqueName/events{/privacy}","received_events_url":"https://api.github.com/users/RealyUniqueName/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T12:22:30Z","updated_at":"2016-08-13T12:22:30Z","body":"Sorry, I'm not familiar with C# syntax.\r\nIn this case i don't see any difference \"user-wise\" between these two solutions."}}
{"actor":{"display_login":"RealyUniqueName"}}