mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-02 19:22:40 +02:00
# SOME DESCRIPTIVE TITLE. # Copyright (C) 2011-2020, Dominik Liebler and contributors # This file is distributed under the same license as the DesignPatternsPHP # package. # FIRST AUTHOR <EMAIL@ADDRESS>, 2020. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-05-04 00:50+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.8.0\n" #: ../../Behavioral/NullObject/README.rst:2 msgid "`Null Object`__" msgstr "" #: ../../Behavioral/NullObject/README.rst:5 msgid "Purpose" msgstr "" #: ../../Behavioral/NullObject/README.rst:7 msgid "" "NullObject is not a GoF design pattern but a schema which appears " "frequently enough to be considered a pattern. It has the following " "benefits:" msgstr "" #: ../../Behavioral/NullObject/README.rst:11 msgid "Client code is simplified" msgstr "" #: ../../Behavioral/NullObject/README.rst:12 msgid "Reduces the chance of null pointer exceptions" msgstr "" #: ../../Behavioral/NullObject/README.rst:13 msgid "Fewer conditionals require less test cases" msgstr "" #: ../../Behavioral/NullObject/README.rst:15 msgid "" "Methods that return an object or null should instead return an object or " "``NullObject``. ``NullObject``\\ s simplify boilerplate code such as ``if" " (!is_null($obj)) { $obj->callSomething(); }`` to just " "``$obj->callSomething();`` by eliminating the conditional check in client" " code." msgstr "" #: ../../Behavioral/NullObject/README.rst:22 msgid "Examples" msgstr "" #: ../../Behavioral/NullObject/README.rst:24 msgid "" "Null logger or null output to preserve a standard way of interaction " "between objects, even if the shouldn't do anything" msgstr "" #: ../../Behavioral/NullObject/README.rst:25 msgid "null handler in a Chain of Responsibilities pattern" msgstr "" #: ../../Behavioral/NullObject/README.rst:26 msgid "null command in a Command pattern" msgstr "" #: ../../Behavioral/NullObject/README.rst:29 msgid "UML Diagram" msgstr "" #: ../../Behavioral/NullObject/README.rst:36 msgid "Code" msgstr "" #: ../../Behavioral/NullObject/README.rst:38 msgid "You can also find this code on `GitHub`_" msgstr "" #: ../../Behavioral/NullObject/README.rst:40 msgid "Service.php" msgstr "" #: ../../Behavioral/NullObject/README.rst:46 msgid "Logger.php" msgstr "" #: ../../Behavioral/NullObject/README.rst:52 msgid "PrintLogger.php" msgstr "" #: ../../Behavioral/NullObject/README.rst:58 msgid "NullLogger.php" msgstr "" #: ../../Behavioral/NullObject/README.rst:65 msgid "Test" msgstr "" #: ../../Behavioral/NullObject/README.rst:67 msgid "Tests/LoggerTest.php" msgstr ""