-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from lilt/3.x-development
Release 3.2.0
- Loading branch information
Showing
11 changed files
with
181 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
|
||
/** | ||
* @link https://github.com/lilt | ||
* @copyright Copyright (c) 2022 Lilt Devs | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace lilthq\craftliltplugin\services\handlers\commands; | ||
|
||
use craft\base\ElementInterface; | ||
|
||
class CreateDraftCommand | ||
{ | ||
private $element; | ||
private $jobTitle; | ||
private $sourceSiteId; | ||
private $targetSiteId; | ||
private $flow; | ||
|
||
public function __construct( | ||
ElementInterface $element, | ||
string $jobTitle, | ||
int $sourceSiteId, | ||
int $targetSiteId, | ||
string $flow | ||
) { | ||
$this->element = $element; | ||
$this->jobTitle = $jobTitle; | ||
$this->sourceSiteId = $sourceSiteId; | ||
$this->targetSiteId = $targetSiteId; | ||
$this->flow = $flow; | ||
} | ||
|
||
public function getElement(): ElementInterface | ||
{ | ||
return $this->element; | ||
} | ||
|
||
public function getJobTitle(): string | ||
{ | ||
return $this->jobTitle; | ||
} | ||
|
||
public function getSourceSiteId(): int | ||
{ | ||
return $this->sourceSiteId; | ||
} | ||
|
||
public function getTargetSiteId(): int | ||
{ | ||
return $this->targetSiteId; | ||
} | ||
|
||
public function getFlow(): string | ||
{ | ||
return $this->flow; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters