This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Tale\StringUtil - The Tale Framework | |
* | |
* @version 1.0 | |
* @status Beta | |
* @author Torben Köhn <t.koehn@outlook.com> | |
* | |
* This software is distributed under the MIT license. | |
* A copy of the license has been distributed with this software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'db' => [ | |
'host' => 'localhost', | |
'user' => '<db_user>', | |
'password' => '<db_password>', | |
'name' => '<database_name>' | |
] | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Methode 1 | |
class Model | |
{ | |
protected $tableName = ''; | |
//Default inflection im ctor? | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Methode 1 | |
class Db | |
{ | |
private $_timeOut = 30; | |
private $_cache = null; | |
//... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ViewBag | |
{ | |
private $subject; | |
public function __construct($subject) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Psr\Http\Message\ResponseInterface; | |
use Ion\Http; | |
use Ion\Http\{ | |
MiddlewareInterface, | |
Middleware\Dispatcher, | |
Middleware\RunFilterTrait, | |
Response | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Ion\Http\Middleware; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
class Queue extends \SplQueue | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Psr\Http\Message\ResponseInterface; | |
use Ion\Http; | |
use Ion\Http\{ | |
Middleware\Queue, | |
MiddlewareInterface, | |
Middleware\Dispatcher, | |
Middleware\RunFilterTrait, | |
Response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Column implements Annotation | |
{ | |
private string $type; | |
private int $length; | |
private bool $nullable; | |
public function __construct(string $type, int $length = null, bool $nullable = false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyCollection | |
{ | |
//Iterator/ArrayAccess/Countable stuff... | |
public overload -(array $other) | |
{ | |
return new self(array_diff($this->items, $other)); |