class Dictionary {
private $translations = array();
private $dictio;
private $type;
function __construct($type, DictionaryIO $dictio) {
$this->type = $type;
$this->dictio = $dictio;
}
// ...
}
$en = new Dictionary("En", new DictionaryIO());
$en->dictio = null;
J'ai vu quelque chose comme le code ci-dessus. Quelqu'un peut me dire efficace du code de lignePHP - OOP nouvelle classe avec agrument?
$en = new Dictionary("En", new DictionaryIO());
oh, merci beaucoup, de vous revoir: D – Chameron