mam mały problem:
<?php $storagePlace = new StoragePlace("storagePlace"); $storage = new Storage($storagePlace, "storage"); $album = new Album($storage, "name"); $st = $album->getStorage(); ?>
chcę teraz na polu $st wywałać metodę klasy Storage, no i nie mogę.
no więc pierwsza myśl - typ zwracany przez metodę getStorage w klasie Album - tyle, że nie wiem jak ten typ określić...
<?php public function getStorage() { return $this->storage; } ?>
na codzień piszę w javie, więc w php biegły nie jestem.
proszę zatem o pomoc