Hoi PHPHulp-ers,
Mogelijk is de titel niet heel erg duidelijk.
Ik heb een vraagje.
Hoe kan ik het volgende probleem het beste oplossen.
Ik het volgende ( voorbeeld ) origineel gaat het om een SOAP class.
[quote]
<?php
class A {
protected $variabel;
protected $b;
public function __construct()
{
$this->variabel = 'blaat';
$this->b = new B(); // Hier wil ik de variable $this->variabel mee geven
}
public function getVariabel()
{
return $b->getVariabel();
}
}
class B {
protected $variabel;
public function getVariabel()
{
return $this->variabel;
}
}
1.799 views