PHP code example of psg / psr-100-implementation
1. Go to this page and download the library: Download psg/psr-100-implementation library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
psg / psr-100-implementation example snippets
interface x{
public function bob();
}
interface y extends x{
public function bill();
}
interface bob{
public function process(x $bob);
}
interface sue extends bob{
public function process(y $bob);
}
interface x{
public function bob();
}
interface y extends x{
public function bill();
}
interface bob{
public function process(x $bob): x;
}
interface sue extends bob{
public function process(x $bob): y;
}