{"id":22,"date":"2008-01-06T20:21:39","date_gmt":"2008-01-07T03:21:39","guid":{"rendered":"http:\/\/www.jacksonleung.com\/blog\/2008\/01\/06\/factories\/"},"modified":"2008-01-06T20:23:13","modified_gmt":"2008-01-07T03:23:13","slug":"factories","status":"publish","type":"post","link":"http:\/\/www.jacksonleung.com\/blog\/factories\/","title":{"rendered":"Factories"},"content":{"rendered":"<p>Today, while reading some of my PHP books, I&#8217;ve came across a simple and clear definition for what a &#8220;factory&#8221; is and I decided to share it.<\/p>\n<p>A factory is a class or method with the responsibility for generating objects.<\/p>\n<p>I&#8217;m obviously not writing this post for those who are already well-versed in the ways of the coders, but for those who are trying to become well-versed, and are seeking clarification wherever they can find it. I hope you guys find this helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, while reading some of my PHP books, I&#8217;ve came across a simple and clear definition for what a &#8220;factory&#8221; is and I decided to share it. A factory is a class or method with the responsibility for generating objects. I&#8217;m obviously not writing this post for those who are already well-versed in the ways &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.jacksonleung.com\/blog\/factories\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Factories&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-programming","entry"],"_links":{"self":[{"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jacksonleung.com\/blog\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}