private function setPinActions() { if ($this->showtime->url) { //create buy url $buyAction = new Pin\Action\OpenWatchApp("Buy Ticket", $this->showtime->id); $this->pin->addAction($buyAction); } }