{"action":"created","issue":{"url":"https://api.github.com/repos/jclaveau/php-logical-filter/issues/52","repository_url":"https://api.github.com/repos/jclaveau/php-logical-filter","labels_url":"https://api.github.com/repos/jclaveau/php-logical-filter/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/jclaveau/php-logical-filter/issues/52/comments","events_url":"https://api.github.com/repos/jclaveau/php-logical-filter/issues/52/events","html_url":"https://github.com/jclaveau/php-logical-filter/issues/52","id":340593242,"node_id":"MDU6SXNzdWUzNDA1OTMyNDI=","number":52,"title":"Consider more Chainable tools","user":{"login":"jclaveau","id":1556489,"node_id":"MDQ6VXNlcjE1NTY0ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1556489?v=4","gravatar_id":"","url":"https://api.github.com/users/jclaveau","html_url":"https://github.com/jclaveau","followers_url":"https://api.github.com/users/jclaveau/followers","following_url":"https://api.github.com/users/jclaveau/following{/other_user}","gists_url":"https://api.github.com/users/jclaveau/gists{/gist_id}","starred_url":"https://api.github.com/users/jclaveau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclaveau/subscriptions","organizations_url":"https://api.github.com/users/jclaveau/orgs","repos_url":"https://api.github.com/users/jclaveau/repos","events_url":"https://api.github.com/users/jclaveau/events{/privacy}","received_events_url":"https://api.github.com/users/jclaveau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jclaveau/php-logical-filter/milestones/3","html_url":"https://github.com/jclaveau/php-logical-filter/milestone/3","labels_url":"https://api.github.com/repos/jclaveau/php-logical-filter/milestones/3/labels","id":3384269,"node_id":"MDk6TWlsZXN0b25lMzM4NDI2OQ==","number":3,"title":"Rationnalize architecture","description":"","creator":{"login":"jclaveau","id":1556489,"node_id":"MDQ6VXNlcjE1NTY0ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1556489?v=4","gravatar_id":"","url":"https://api.github.com/users/jclaveau","html_url":"https://github.com/jclaveau","followers_url":"https://api.github.com/users/jclaveau/followers","following_url":"https://api.github.com/users/jclaveau/following{/other_user}","gists_url":"https://api.github.com/users/jclaveau/gists{/gist_id}","starred_url":"https://api.github.com/users/jclaveau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclaveau/subscriptions","organizations_url":"https://api.github.com/users/jclaveau/orgs","repos_url":"https://api.github.com/users/jclaveau/repos","events_url":"https://api.github.com/users/jclaveau/events{/privacy}","received_events_url":"https://api.github.com/users/jclaveau/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2018-05-29T14:38:06Z","updated_at":"2018-07-12T11:11:51Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-07-12T11:11:42Z","updated_at":"2018-07-12T11:32:49Z","closed_at":null,"author_association":"OWNER","body":"```php\r\n    public final function saveAs(&$variable_to_save_this_in=null)\r\n    {\r\n        $variable_to_save_this_in = $this->copy();\r\n        return $this;\r\n    }\r\n\r\n    public static function construct()\r\n    {\r\n        $class = get_called_class();\r\n\r\n        if (version_compare(PHP_VERSION, '5.6.0', '>=')) {\r\n            $instance = new $class(...$args);\r\n        }\r\n        else {\r\n            $reflect  = new ReflectionClass($class);\r\n            $instance = $reflect->newInstanceArgs($args);\r\n        }\r\n\r\n        return $instance;\r\n    }\r\n```\r\n\r\nAlso:\r\n+ clone_(), \r\n+ defineAs(), \r\n+ copy(), \r\n+ new_() (consider factory here).\r\n\r\nDo not forget: \r\n+ syntax colors in IDEs\r\n+ reserved words of PHP 7\r\n"},"comment":{"url":"https://api.github.com/repos/jclaveau/php-logical-filter/issues/comments/404481815","html_url":"https://github.com/jclaveau/php-logical-filter/issues/52#issuecomment-404481815","issue_url":"https://api.github.com/repos/jclaveau/php-logical-filter/issues/52","id":404481815,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDQ4MTgxNQ==","user":{"login":"jclaveau","id":1556489,"node_id":"MDQ6VXNlcjE1NTY0ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/1556489?v=4","gravatar_id":"","url":"https://api.github.com/users/jclaveau","html_url":"https://github.com/jclaveau","followers_url":"https://api.github.com/users/jclaveau/followers","following_url":"https://api.github.com/users/jclaveau/following{/other_user}","gists_url":"https://api.github.com/users/jclaveau/gists{/gist_id}","starred_url":"https://api.github.com/users/jclaveau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclaveau/subscriptions","organizations_url":"https://api.github.com/users/jclaveau/orgs","repos_url":"https://api.github.com/users/jclaveau/repos","events_url":"https://api.github.com/users/jclaveau/events{/privacy}","received_events_url":"https://api.github.com/users/jclaveau/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T11:32:49Z","updated_at":"2018-07-12T11:32:49Z","author_association":"OWNER","body":"Roles of new_(), factory(): \r\n+ new_() is final and does the same as new in chained way\r\n+ factory used for static classes only (e.g Arrays::factory('chainable))\r\n"}}
{"actor":{"display_login":"jclaveau"}}