/** * Constructor * @param Registry $registry * @param int $id * @return void */ public function __construct(Registry $registry, $id = 0, $user) { $this->registry = $registry; parent::setTypeReference('image'); parent::__construct($this->registry, $id); $this->username = $this->getUsername($user); }
/** * Constructor * @param Registry $registry * @param int $id * @return void */ public function __construct(Registry $registry, $id = 0) { $this->registry = $registry; parent::__construct($this->registry, $id); parent::setTypeReference('link'); }