PHP code example of ytake / hh-container
1. Go to this page and download the library: Download ytake/hh-container 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/ */
ytake / hh-container example snippets
hack
final class MessageClass {
public function __construct(
protected string $message
) {}
public function message(): string {
return $this->message;
}
}
final class MessageClient {
public function __construct(
protected MessageClass $message
) {}
public function message(): MessageClass {
return $this->message;
}
}