/** * @param string $title * @param array $cells */ public function __construct(TreeNode $node, array $cells) { if ($node instanceof Cardwall_CardInCellPresenterNode) { $this->card_presenter = $node->getCardInCellPresenter()->getCardPresenter(); } $this->cells = $cells; $this->swimline_id = $node->getId(); }