Differential D12390 Diff 31157 src/applications/diffusion/query/pathchange/DiffusionPathChangeQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/pathchange/DiffusionPathChangeQuery.php
<?php | <?php | ||||
final class DiffusionPathChangeQuery { | final class DiffusionPathChangeQuery { | ||||
private $request; | private $request; | ||||
private $limit; | private $limit; | ||||
public function setLimit($limit) { | public function setLimit($limit) { | ||||
$this->limit = $limit; | $this->limit = $limit; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getLimit() { | public function getLimit() { | ||||
return $this->limit; | return $this->limit; | ||||
} | } | ||||
final private function __construct() { | private function __construct() { | ||||
// <private> | // <private> | ||||
} | } | ||||
final public static function newFromDiffusionRequest( | public static function newFromDiffusionRequest( | ||||
DiffusionRequest $request) { | DiffusionRequest $request) { | ||||
$query = new DiffusionPathChangeQuery(); | $query = new DiffusionPathChangeQuery(); | ||||
$query->request = $request; | $query->request = $request; | ||||
return $query; | return $query; | ||||
} | } | ||||
final protected function getRequest() { | protected function getRequest() { | ||||
return $this->request; | return $this->request; | ||||
} | } | ||||
final public function loadChanges() { | public function loadChanges() { | ||||
return $this->executeQuery(); | return $this->executeQuery(); | ||||
} | } | ||||
protected function executeQuery() { | protected function executeQuery() { | ||||
$drequest = $this->getRequest(); | $drequest = $this->getRequest(); | ||||
$repository = $drequest->getRepository(); | $repository = $drequest->getRepository(); | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |