Skip to content

Commit

Permalink
Added licesnse information.
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jan 11, 2019
1 parent 8b35a3b commit 6bbcb50
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
28 changes: 26 additions & 2 deletions JsonI.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
<?php
/*
* The MIT License
*
* Copyright 2019 Ibrahim, JsonX library v1.4.2
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace jsonx;
/**
* An interface for the objects that can be added to an instance of JsonX.
Expand All @@ -8,8 +31,9 @@
*/
interface JsonI {
/**
* This method can be implemented by any class that will be added as an
* attribute to any JsonX instance. It is used to customize the generated
* Returns an object of type JsonX.
* This method can be implemented by any class that will be added
* to any JsonX instance. It is used to customize the generated
* JSON string.
* @return JsonX An instance of JsonX.
* @since 1.0
Expand Down
25 changes: 24 additions & 1 deletion JsonX.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
<?php
/*
* The MIT License
*
* Copyright 2019 Ibrahim, JsonX library v1.4.2
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace jsonx;
use jsonx\JsonI;
use jsonx\JsonX;
/**
* An a class that can be used to create well formatted JSON strings.
* The class follows the specifications found at https://www.json.org/index.html.
* @author Ibrahim <[email protected]>
* @author Ibrahim
* @since 1.2
*/
class JsonX {
Expand Down

0 comments on commit 6bbcb50

Please sign in to comment.