text: 2434 1565597543067 httpcache-v1
  Method: POST
  URL: https://www.notion.so/api/v3/getRecordValues
  Body:+110
  {
    "requests": [
      {
        "id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
        "table": "block"
      }
    ]
  }
  Response:+2234
  {
    "results": [
      {
        "role": "comment_only",
        "value": {
          "alive": true,
          "content": [
            "c0d858f0-bf20-4f09-aebb-6e3f1310aaab",
            "0e6b0b29-4308-4f38-b2b9-a13a9987a0fd",
            "2c8feff7-4552-4e34-9405-94c1ce46cb43",
            "a39e1655-9d46-4c6e-82bc-cc3a90ba2d4b",
            "dce2becc-8eb7-4c82-bdc6-f17a9bb4cea3",
            "79698535-cbec-4a21-84d4-4de7a3485b60",
            "1b56fd8a-884f-452b-8e8e-c5debe8d8a6f",
            "9477937a-9f6d-4280-ad62-987c5a768ac5",
            "84d73715-8a8d-4ff0-afa6-cd33b829d6ae",
            "5960255a-4d18-4c85-9ff8-c11ffa74e984",
            "f1e0553d-8b60-440a-ba1d-d656b7304bff",
            "b3caf89b-e1c0-4546-b804-d8fc56d7bbf8",
            "715ed3a1-3600-4496-8131-77d636cfaca4",
            "5e1b7d34-1765-4334-a82a-f549152e3565",
            "8fc80ad0-a95a-4aa7-b5d7-9f71160ffffb",
            "173d6d7c-8f5e-4024-b54b-bf089666b2b8",
            "4c9f4c7e-f1dc-4033-9204-3744ffe27da9",
            "3b6ec011-7312-423e-acee-862f456dbdb4",
            "ab5d7858-6e19-4012-abe6-03b5e2d7fa17",
            "550d7df6-13b6-4419-b79c-bfc6bd77d259",
            "fe518e87-33e8-48b4-a4bd-92b842b57643",
            "edb81ef4-aee5-4e8e-94e8-86a27be46d6a",
            "15dee0d7-40a5-44cc-9af1-8111d661c426",
            "528de59c-aea4-4f5c-b767-820087c3a58b",
            "1f05ac62-727d-4723-959d-90f62942d498",
            "38ab70d2-0a65-4788-bebd-9126e9c6d9cb",
            "eacca210-a6ca-46be-846b-11cd367d1b2e",
            "8faa0434-8d2e-4126-a60e-73c67632ff9b"
          ],
          "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
          "created_time": 1552022372177,
          "format": {
            "page_full_width": true,
            "page_small_text": true
          },
          "id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
          "ignore_block_count": true,
          "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
          "last_edited_time": 1552022372177,
          "parent_id": "caabd093-67a6-454d-8e67-b40f2303905b",
          "parent_table": "block",
          "properties": {
            "title": [
              [
                "this self and static plus the singleton"
              ]
            ]
          },
          "type": "page",
          "version": 3
        }
      }
    ]
  }
  40275 1565597543072 httpcache-v1
  Method: POST
  URL: https://www.notion.so/api/v3/loadPageChunk
  Body:+152
  {
    "chunkNumber": 0,
    "cursor": {
      "stack": []
    },
    "limit": 50,
    "pageId": "1d91b89d-6726-4b97-91ac-d5c943835a80",
    "verticalColumns": false
  }
  Response:+40034
  {
    "cursor": {
      "stack": []
    },
    "recordMap": {
      "block": {
        "0e6b0b29-4308-4f38-b2b9-a13a9987a0fd": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372173,
            "id": "0e6b0b29-4308-4f38-b2b9-a13a9987a0fd",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372173,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "In the example below, "
                ],
                [
                  "sayHello()",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " and "
                ],
                [
                  "sayGoodbye()",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " are using "
                ],
                [
                  "self",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " and "
                ],
                [
                  "$this",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " difference can be observed here."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "15dee0d7-40a5-44cc-9af1-8111d661c426": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372177,
            "id": "15dee0d7-40a5-44cc-9af1-8111d661c426",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372177,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "As you can see in the example code we are defining a private static property "
                ],
                [
                  "$instance",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " to hold the object reference. Since this is static this reference is shared across ALL objects of this type."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "173d6d7c-8f5e-4024-b54b-bf089666b2b8": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372175,
            "id": "173d6d7c-8f5e-4024-b54b-bf089666b2b8",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372175,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "unknown"
                ]
              ]
            },
            "type": "quote",
            "version": 1
          }
        },
        "1b56fd8a-884f-452b-8e8e-c5debe8d8a6f": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372174,
            "id": "1b56fd8a-884f-452b-8e8e-c5debe8d8a6f",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372174,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "language": [
                [
                  "Plain Text"
                ]
              ],
              "title": [
                [
                  "class Car {\n    protected static $brand = 'unknown';\n    \n    public static function brand() {\n         return self::$brand.\"\\n\";\n    }\n}\n\nclass Mercedes extends Car {\n    protected static $brand = 'Mercedes';\n}\n\nclass BMW extends Car {\n    protected static $brand = 'BMW';\n}\n\necho (new Car)-\u003ebrand();\necho (new BMW)-\u003ebrand();\necho (new Mercedes)-\u003ebrand();"
                ]
              ]
            },
            "type": "code",
            "version": 1
          }
        },
        "1d91b89d-6726-4b97-91ac-d5c943835a80": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "content": [
              "c0d858f0-bf20-4f09-aebb-6e3f1310aaab",
              "0e6b0b29-4308-4f38-b2b9-a13a9987a0fd",
              "2c8feff7-4552-4e34-9405-94c1ce46cb43",
              "a39e1655-9d46-4c6e-82bc-cc3a90ba2d4b",
              "dce2becc-8eb7-4c82-bdc6-f17a9bb4cea3",
              "79698535-cbec-4a21-84d4-4de7a3485b60",
              "1b56fd8a-884f-452b-8e8e-c5debe8d8a6f",
              "9477937a-9f6d-4280-ad62-987c5a768ac5",
              "84d73715-8a8d-4ff0-afa6-cd33b829d6ae",
              "5960255a-4d18-4c85-9ff8-c11ffa74e984",
              "f1e0553d-8b60-440a-ba1d-d656b7304bff",
              "b3caf89b-e1c0-4546-b804-d8fc56d7bbf8",
              "715ed3a1-3600-4496-8131-77d636cfaca4",
              "5e1b7d34-1765-4334-a82a-f549152e3565",
              "8fc80ad0-a95a-4aa7-b5d7-9f71160ffffb",
              "173d6d7c-8f5e-4024-b54b-bf089666b2b8",
              "4c9f4c7e-f1dc-4033-9204-3744ffe27da9",
              "3b6ec011-7312-423e-acee-862f456dbdb4",
              "ab5d7858-6e19-4012-abe6-03b5e2d7fa17",
              "550d7df6-13b6-4419-b79c-bfc6bd77d259",
              "fe518e87-33e8-48b4-a4bd-92b842b57643",
              "edb81ef4-aee5-4e8e-94e8-86a27be46d6a",
              "15dee0d7-40a5-44cc-9af1-8111d661c426",
              "528de59c-aea4-4f5c-b767-820087c3a58b",
              "1f05ac62-727d-4723-959d-90f62942d498",
              "38ab70d2-0a65-4788-bebd-9126e9c6d9cb",
              "eacca210-a6ca-46be-846b-11cd367d1b2e",
              "8faa0434-8d2e-4126-a60e-73c67632ff9b"
            ],
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372177,
            "format": {
              "page_full_width": true,
              "page_small_text": true
            },
            "id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372177,
            "parent_id": "caabd093-67a6-454d-8e67-b40f2303905b",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "this self and static plus the singleton"
                ]
              ]
            },
            "type": "page",
            "version": 3
          }
        },
        "1f05ac62-727d-4723-959d-90f62942d498": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372177,
            "id": "1f05ac62-727d-4723-959d-90f62942d498",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372177,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "We are also setting the constructor to be private to ensure that no one creates it with the "
                ],
                [
                  "new",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " keyword from the outside. If you need to inherit from this class just change the "
                ],
                [
                  "private",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " keywords to "
                ],
                [
                  "protected",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  "."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "2c8feff7-4552-4e34-9405-94c1ce46cb43": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372174,
            "id": "2c8feff7-4552-4e34-9405-94c1ce46cb43",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372174,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "language": [
                [
                  "Plain Text"
                ]
              ],
              "title": [
                [
                  "class Person {\n    private $name;\n\n    public function __construct($name) {\n        $this-\u003ename = $name;\n    }\n\n    public function getName() {\n        return $this-\u003ename;\n    }\n\n    public function getTitle() {\n        return $this-\u003egetName().\" the person\";\n    }\n\n    public function sayHello() {\n        echo \"Hello, I'm \".$this-\u003egetTitle().\"\u003cbr/\u003e\";\n    }\n\n    public function sayGoodbye() {\n        echo \"Goodbye from \".self::getTitle().\"\u003cbr/\u003e\";\n    }\n}\n\nclass Geek extends Person {\n    public function __construct($name) {\n        parent::__construct($name);\n    }\n\n    public function getTitle() {\n        return $this-\u003egetName().\" the geek\";\n    }\n}\n\n$geekObj = new Geek(\"Ludwig\");\n$geekObj-\u003esayHello();\n$geekObj-\u003esayGoodbye();"
                ]
              ]
            },
            "type": "code",
            "version": 1
          }
        },
        "38ab70d2-0a65-4788-bebd-9126e9c6d9cb": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372177,
            "id": "38ab70d2-0a65-4788-bebd-9126e9c6d9cb",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372177,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "To use this object you just write the following:"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "3b6ec011-7312-423e-acee-862f456dbdb4": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372176,
            "id": "3b6ec011-7312-423e-acee-862f456dbdb4",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372176,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "Mercedes"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "4c9f4c7e-f1dc-4033-9204-3744ffe27da9": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372176,
            "id": "4c9f4c7e-f1dc-4033-9204-3744ffe27da9",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372176,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "BMW"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "528de59c-aea4-4f5c-b767-820087c3a58b": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372177,
            "id": "528de59c-aea4-4f5c-b767-820087c3a58b",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372177,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "The "
                ],
                [
                  "getInstance()",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  "method uses a method know as lazy instantiation to delay creating the object to the last possible moment as you do not want to have unused objects lying around in memory never intended to be used. It also saves time and CPU on page load not having to load more objects than necessary. The method is checking if the object is set, creating it if not, and returning it. This ensures that only one object of this kind is ever created."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "550d7df6-13b6-4419-b79c-bfc6bd77d259": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372176,
            "id": "550d7df6-13b6-4419-b79c-bfc6bd77d259",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372176,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "The singleton"
                ]
              ]
            },
            "type": "sub_header",
            "version": 1
          }
        },
        "5960255a-4d18-4c85-9ff8-c11ffa74e984": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372175,
            "id": "5960255a-4d18-4c85-9ff8-c11ffa74e984",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372175,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "unknown"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "5e1b7d34-1765-4334-a82a-f549152e3565": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372175,
            "id": "5e1b7d34-1765-4334-a82a-f549152e3565",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372175,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "language": [
                [
                  "Plain Text"
                ]
              ],
              "title": [
                [
                  "class Car {\n    protected static $brand = 'unknown';\n    \n    public static function brand() {\n         return static::$brand.\"\\n\";\n    }\n}\n\nclass Mercedes extends Car {\n    protected static $brand = 'Mercedes';\n}\n\nclass BMW extends Car {\n    protected static $brand = 'BMW';\n}\n\necho (new Car)-\u003ebrand();\necho (new BMW)-\u003ebrand();\necho (new Mercedes)-\u003ebrand();"
                ]
              ]
            },
            "type": "code",
            "version": 1
          }
        },
        "715ed3a1-3600-4496-8131-77d636cfaca4": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372175,
            "id": "715ed3a1-3600-4496-8131-77d636cfaca4",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372175,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "To refer to the correct class, you need to use "
                ],
                [
                  "static",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " instead:"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "79698535-cbec-4a21-84d4-4de7a3485b60": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372174,
            "id": "79698535-cbec-4a21-84d4-4de7a3485b60",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372174,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "Consider the following code:"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "84d73715-8a8d-4ff0-afa6-cd33b829d6ae": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372174,
            "id": "84d73715-8a8d-4ff0-afa6-cd33b829d6ae",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372174,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "unknown"
                ]
              ]
            },
            "type": "quote",
            "version": 1
          }
        },
        "8faa0434-8d2e-4126-a60e-73c67632ff9b": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372177,
            "id": "8faa0434-8d2e-4126-a60e-73c67632ff9b",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372177,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "Now I DO implore you to use dependency injection where you can and aim for loosely coupled objects, but sometimes that is just not reasonable and the singleton pattern can be of use."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "8fc80ad0-a95a-4aa7-b5d7-9f71160ffffb": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372175,
            "id": "8fc80ad0-a95a-4aa7-b5d7-9f71160ffffb",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372175,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "This does produce the desired output:"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "9477937a-9f6d-4280-ad62-987c5a768ac5": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372174,
            "id": "9477937a-9f6d-4280-ad62-987c5a768ac5",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372174,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "This doesn’t produce the result you want:"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "a39e1655-9d46-4c6e-82bc-cc3a90ba2d4b": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372174,
            "id": "a39e1655-9d46-4c6e-82bc-cc3a90ba2d4b",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372174,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "type": "divider",
            "version": 1
          }
        },
        "ab5d7858-6e19-4012-abe6-03b5e2d7fa17": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372176,
            "id": "ab5d7858-6e19-4012-abe6-03b5e2d7fa17",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372176,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "See also http://stackoverflow.com/documentation/php/504/classes-and-objects/5420/late-static-binding#t=201608122306182437362"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "b3caf89b-e1c0-4546-b804-d8fc56d7bbf8": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372175,
            "id": "b3caf89b-e1c0-4546-b804-d8fc56d7bbf8",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372175,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "That’s because "
                ],
                [
                  "self",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " refers to the "
                ],
                [
                  "Car",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " class whenever method "
                ],
                [
                  "brand()",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " is called."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "b64d2e8d-06e0-4dbe-a37e-6e7d0e06bb48": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "content": [
              "517c8074-a37c-44fd-8a9c-fb9f3eae1dcb",
              "494832a4-8019-450b-b43e-04be9e23957c",
              "eb584d64-0967-460c-a9f1-9d66ff8697ea",
              "6427ea2b-9d2c-4408-a6ff-9721a6dc9cdc",
              "78acf98d-751b-413c-b0ef-3d520c041518",
              "feed5453-5dd0-4311-9546-05916acc717b",
              "c21e2838-bb88-4a0b-8677-7fd7990427b3",
              "388890af-6e2d-48b5-8627-8159740b2534",
              "3df608de-d7c1-4570-8555-90ad35d2817a",
              "dd3184e6-59de-418c-9116-ab565faa8a55",
              "3f08c649-08b2-4a97-b43f-ac884356a505",
              "caabd093-67a6-454d-8e67-b40f2303905b",
              "1f2707b9-a751-475a-ba82-519f75e3c8bd",
              "7ea927a4-8c64-45ba-9d71-d5d5796e1b71",
              "5d759c32-1671-4b6c-9cc1-ad59c031c78c",
              "d2ac9d43-0e3b-4077-a4f0-344ab77dce28",
              "8e344e73-ab23-422f-9bc5-1b7a660edb69",
              "a3705b2a-2c83-4e42-b51b-b58874cdba41",
              "8b30ba45-a57e-44b5-b6c2-501af4626d35",
              "6feefd3b-c9d8-4156-84d1-a7c4286028c7",
              "7862f22e-1011-4a4b-8afd-26b9317e46e3",
              "27de0930-be0d-4503-9a9b-05150c7d754e",
              "fcd7e413-e4c3-42f0-b0c5-7a7685e669ee",
              "37215ea5-9547-43fb-89a7-dc17d26d5671",
              "10044815-3b9e-4513-8fa0-812a9957a6cc",
              "73d52685-2f50-4a6a-b764-7a1742062923",
              "2aee6dcb-0989-4be0-82bb-e36362381d91",
              "a5af103b-d852-4d05-b5ed-007e9bc6dac6",
              "0f9ca6e7-305f-414a-9ea4-796bcec6a74b",
              "640a427d-f7cc-4181-99da-abc56c0ee5c7",
              "6358c964-0c94-4f8a-a8f5-0b120eed603b",
              "a2437364-c680-4790-94d6-bb7afe6bbac0",
              "2a04f54f-cf44-4cd5-bb37-8dc6b9f2f1bd",
              "98823712-1c98-4a43-8727-0a1d762add3b",
              "d5ddf8b7-ebe7-43b3-ab49-22492b9f0565",
              "80fa00b7-710d-4ce0-a406-927876f8600b",
              "1f9d9197-defa-432c-bc3d-187124d72a2f",
              "dac99271-1f4b-46ca-8985-d6ddd65e5190",
              "8c42d3d9-a3bc-48da-bce0-bdcb3b7ce79c",
              "b27336d9-e12f-4163-b64c-0f3bd43d13e4",
              "ee791784-c85f-4e7b-a57d-79d4a1fcce89",
              "ca285753-71c7-41a9-b880-7bf2da161416",
              "75659e2f-e309-433d-9258-b76662aeb4fb",
              "9507d5d1-9e19-423b-bb30-e7776757fd1a",
              "c2cfe994-4a4e-42a5-a1f3-29b806f5c459",
              "60c1d051-8c78-4c95-aa4e-d6680ae7e1ed",
              "39389e18-4435-40d2-be30-84d806209e25",
              "0eabffb2-1a8c-43e6-b5d0-24c02329f9d1",
              "c09beb38-7179-42f3-a2d1-f4b433238aa0",
              "e738bef3-04ad-47b8-abdb-d2ff70319024",
              "20bc9dce-d534-40ff-a8c3-c05e75afd5f6",
              "4bba2444-204c-4803-8e80-ee10663d08c2",
              "0a6069ee-9200-41b9-b90f-af0e866b3798",
              "8aad07a8-ece6-477b-8cf0-8ad575a906a8",
              "f0aa9c04-6b09-48e8-9f6d-39195ed864c6",
              "cfd0d40b-7b07-441c-bde3-a5be0d2be41b",
              "d4c8c201-7f26-48eb-a78f-b18c68723b03",
              "f49c9bfd-2029-4200-9a4b-8089d428dd89",
              "0fddad86-8858-4ff5-84b9-18129c56229f",
              "34fff563-be44-4c2d-9eb5-6171986332d6",
              "6ba36b23-f2c3-4c8b-a9cc-1cf9cb37def5",
              "0dddc90f-f179-4221-bf9c-4b41d349abb0",
              "beea7707-e1f5-4975-b2c8-ded58a7e3771",
              "98e7c9aa-afb7-47fa-8982-4cbc37642c6c",
              "19d3a490-e861-442a-bbf8-30380bc306b7",
              "d8cdf9b0-ae04-41c2-ba75-67fe799b9269",
              "d5631366-098b-4c90-b10a-4c27cda07738",
              "50dc657c-d5c2-4a7b-9bac-a72649a034bc",
              "fd667c80-db70-416a-827b-b1c047fdcd5a",
              "681c5601-034f-4549-9a89-5da2da43ed1e",
              "7bb5ac60-6cd4-4c77-b217-3d3c51d66ecc",
              "057eb94f-bb82-4152-b310-dbb929c85b35",
              "5c659a09-6a5a-44b5-88cd-2ab2cf5e69de",
              "7c52c9fa-ae12-4339-a606-1e3e64a5e440",
              "cee10c4b-aca3-4ae1-bef8-0e0c7958d06b",
              "8790e424-131f-482d-9f67-2821001d711f",
              "e4e32393-007a-4cd6-b1f8-27b0cb8545c5",
              "a7c4d158-bfc6-4651-b97b-cf5908cb435e",
              "0933ee85-f73c-456d-a664-05037c9050a2",
              "fdac48d7-3a67-46af-8280-cb49d3eb2900",
              "1ee62efb-a132-4463-ad88-13047e39701a",
              "3bb8f2d9-3a30-426a-90e4-c8d89d2b2785",
              "e0331f63-7a2f-4805-a18a-faecbe9cbd66",
              "3e614d87-5020-40dc-9e8e-4af5ace88042",
              "68a6b5ab-d251-4ea1-82a1-afa23f2b4071",
              "99767f42-6259-4914-8dc4-5d6b25fdc196",
              "8d36e04e-03e7-4133-81d8-8932cbbd4bc0",
              "f74395f5-0fb4-4a16-adfe-cd4f56f1c218",
              "82837995-7012-4d5d-a90f-fdf5f95771a1",
              "88347a4f-4632-4e18-a9bb-6ff61df8922d",
              "bd21e71f-9d9e-48dc-be35-e136a9a8c144",
              "742d5ccb-5b6b-4d47-bb6c-9800fd80a6d3",
              "92dec6b9-c8e9-44be-866a-e1b7eb1d9074",
              "b8e79283-d1b6-4848-b988-973df27cf924",
              "a6892b0f-5fd3-4ff3-8ab1-0f05027fe043",
              "310dc1a9-743f-4997-aa0b-041e5451e745",
              "29536388-77ef-4997-9c01-5894e8dbf0b6",
              "09eab12d-0e6a-4f5d-981a-e20def142720",
              "7b8f9cbd-f897-407c-94d7-825654c81800",
              "8f27b6c2-32e0-46fe-9052-1bece702489a",
              "f2cbf97f-76bf-4894-b8a7-9b36dbdaa986",
              "c2d0558a-e174-47cc-b309-c640ed3984b2",
              "1765cb3f-cdf2-4b3e-941e-3d64128527a6",
              "9272c5f6-725a-4a1d-9d6a-bcf68f821ab7",
              "14002421-cb79-46f2-bd72-40d37b882ed2",
              "24526f5c-fac3-443f-911e-e2c72b4c6749",
              "3665ae32-4323-4b83-a8e7-dc3122f82218",
              "a00936a6-0a0a-4bf3-9db5-563f85e34db0",
              "6b2e4928-558c-43b9-8be4-fe720bf21677"
            ],
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022174667,
            "format": {
              "page_full_width": true,
              "page_small_text": true
            },
            "id": "b64d2e8d-06e0-4dbe-a37e-6e7d0e06bb48",
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1553725920000,
            "parent_id": "8be972f2-13d4-403a-b7f8-c74e60f7639f",
            "parent_table": "block",
            "permissions": [
              {
                "allow_search_engine_indexing": false,
                "role": "comment_only",
                "type": "public_permission"
              }
            ],
            "properties": {
              "title": [
                [
                  "Essential PHP"
                ]
              ]
            },
            "type": "page",
            "version": 170
          }
        },
        "c0d858f0-bf20-4f09-aebb-6e3f1310aaab": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372170,
            "id": "c0d858f0-bf20-4f09-aebb-6e3f1310aaab",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372170,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "Use $this to refer to the current object. Use self to refer to the current class. In other words, use $this-\u003emember for non-static members, use self::$member for static members."
                ]
              ]
            },
            "type": "quote",
            "version": 1
          }
        },
        "caabd093-67a6-454d-8e67-b40f2303905b": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "content": [
              "adffd25f-5a9b-44a8-913c-de7bafade0f0",
              "f09dfbd5-1304-440b-9348-189eae189376",
              "06807e7e-2dbb-4bf3-b6f4-58072a6e5092",
              "b1864cfa-b2e4-4763-a818-d7b2c818bb3d",
              "282fc71a-fbf4-4f78-ad0c-11d45d0137cd",
              "a46b474a-1161-445b-ba3d-a237b46a601c",
              "7132ecbc-9c1c-4fe1-b6c9-4b85824ac246",
              "0e25c2f1-3d3c-441c-aed2-5a6be7eea34e",
              "fd6f618e-f51e-42a6-81a8-bc04b21f1b4a",
              "e18e6bc2-4977-4dcc-a6a1-ec7fbd8e0544",
              "9932c762-76be-46d2-8bd1-6c5c341a5370",
              "abd588c9-6350-4c16-b7be-addbf1df8c28",
              "1d91b89d-6726-4b97-91ac-d5c943835a80",
              "d75fcc46-66dd-49a8-b175-71b6ba144f48",
              "aaa58118-080d-4afd-9068-7b700c1451cd"
            ],
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022340000,
            "format": {
              "page_full_width": true,
              "page_small_text": true
            },
            "id": "caabd093-67a6-454d-8e67-b40f2303905b",
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022520000,
            "parent_id": "b64d2e8d-06e0-4dbe-a37e-6e7d0e06bb48",
            "parent_table": "block",
            "permissions": [
              {
                "role": "editor",
                "type": "user_permission",
                "user_id": "bb760e2d-d679-4b64-b2a9-03005b21870a"
              }
            ],
            "properties": {
              "title": [
                [
                  "Classes and objects"
                ]
              ]
            },
            "type": "page",
            "version": 44
          }
        },
        "dce2becc-8eb7-4c82-bdc6-f17a9bb4cea3": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372174,
            "id": "dce2becc-8eb7-4c82-bdc6-f17a9bb4cea3",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372174,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "static",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " refers to whatever class in the hierarchy you called the method on. It allows for better reuse of static class properties when classes are inherited."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "eacca210-a6ca-46be-846b-11cd367d1b2e": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372177,
            "id": "eacca210-a6ca-46be-846b-11cd367d1b2e",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372177,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "language": [
                [
                  "Plain Text"
                ]
              ],
              "title": [
                [
                  "$singleton = Singleton::getInstance();"
                ]
              ]
            },
            "type": "code",
            "version": 1
          }
        },
        "edb81ef4-aee5-4e8e-94e8-86a27be46d6a": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372176,
            "id": "edb81ef4-aee5-4e8e-94e8-86a27be46d6a",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372176,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "language": [
                [
                  "Plain Text"
                ]
              ],
              "title": [
                [
                  "class Singleton {\n    private static $instance = null;\n\n    public static function getInstance(){\n        if(!isset(self::$instance)){\n            self::$instance = new self();\n        }\n        \n        return self::$instance;\n    }\n    \n    private function __construct() {\n        // Do constructor stuff\n    }\n}"
                ]
              ]
            },
            "type": "code",
            "version": 1
          }
        },
        "f1e0553d-8b60-440a-ba1d-d656b7304bff": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372175,
            "id": "f1e0553d-8b60-440a-ba1d-d656b7304bff",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372175,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "unknown"
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        },
        "fe518e87-33e8-48b4-a4bd-92b842b57643": {
          "role": "comment_only",
          "value": {
            "alive": true,
            "created_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "created_time": 1552022372176,
            "id": "fe518e87-33e8-48b4-a4bd-92b842b57643",
            "ignore_block_count": true,
            "last_edited_by": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "last_edited_time": 1552022372176,
            "parent_id": "1d91b89d-6726-4b97-91ac-d5c943835a80",
            "parent_table": "block",
            "properties": {
              "title": [
                [
                  "If you have an object that’s expensive to create or represents a connection to some external resource you want to reuse, i.e. a database connection where there is no connection pooling or a socket to some other system, you can use the "
                ],
                [
                  "static",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " and "
                ],
                [
                  "self",
                  [
                    [
                      "c"
                    ]
                  ]
                ],
                [
                  " keywords in a class to make it a singleton. There are strong opinions about whether the singleton pattern should or should not be used, but it does have its uses."
                ]
              ]
            },
            "type": "text",
            "version": 1
          }
        }
      },
      "notion_user": {
        "bb760e2d-d679-4b64-b2a9-03005b21870a": {
          "role": "reader",
          "value": {
            "clipper_onboarding_completed": true,
            "email": "kkowalczyk@gmail.com",
            "family_name": "Kowalczyk",
            "given_name": "Krzysztof",
            "id": "bb760e2d-d679-4b64-b2a9-03005b21870a",
            "mobile_onboarding_completed": true,
            "onboarding_completed": true,
            "profile_photo": "https://s3-us-west-2.amazonaws.com/public.notion-static.com/2dcaa66c-7674-4ff6-9924-601785b63561/head-bw-640x960.png",
            "version": 179
          }
        }
      },
      "space": {}
    }
  }
  