<?php
namespace Claromentis\Pages\UseCase;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] ?: array()) + array();
use Claromentis\Pages\Repository\PagesRepository;




class SetColumns
{
    public function __construct(PagesRepository $pages_repo)
    {
        $this->pages_repo = $pages_repo;
    }
    public function SetColumns($page_url, $_a42c86642011ef739b88ee80672c387d, $_3877cdf57a61e49b56aeab7af930ee82)
    {
        $_26a40d3c72d5e0e30da2cdca28f1e228 = false;
        $_221da17e3055fae8d3ff516b832a5f3b = $this->pages_repo->GetWorkingCopy($page_url->id, $_3877cdf57a61e49b56aeab7af930ee82);
        if ($_221da17e3055fae8d3ff516b832a5f3b !== null) {
            $_8bc73a830f208edf0738e3cf68498533 = $_221da17e3055fae8d3ff516b832a5f3b->GetColumnCount();
            if ($_8bc73a830f208edf0738e3cf68498533 != $_a42c86642011ef739b88ee80672c387d) {
                $_26a40d3c72d5e0e30da2cdca28f1e228 = true;
                $_221da17e3055fae8d3ff516b832a5f3b->SetColumnCount($_a42c86642011ef739b88ee80672c387d);
                $this->pages_repo->Save($_221da17e3055fae8d3ff516b832a5f3b);
            }
        }
        return $_26a40d3c72d5e0e30da2cdca28f1e228;
    }
}