Create the Presenter and store the object we are presenting.
public __construct ( mixed $object ) | ||
$object | mixed |
public function __construct($object, $converter) { parent::__construct($object); $this->converter = $converter; }
public function __construct($object, PercentageService $percentageService) { parent::__construct($object); $this->percentageService = $percentageService; }
public function __construct(Job $job, Markdown $markdown) { parent::__construct($job); $this->markdown = $markdown; }