Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- declare(strict_types = 1);
- namespace SE20\Importer;
- final class ImporterStatus {
- /**
- * @var string[]
- */
- private $invalidEmails;
- /**
- * @var array[]
- */
- private $statusChanges;
- /**
- * @var array
- */
- private $newContactIds;
- /**
- * @var array
- */
- private $existingContactIds;
- /**
- * @var int[]
- */
- private $allContactIds;
- /**
- * @var int[]
- */
- private $contactListIds;
- public function __construct() {
- $this->invalidEmails = [];
- $this->statusChanges = [];
- $this->allContactIds = [];
- $this->contactListIds = [];
- $this->newContactIds = [];
- $this->existingContactIds = [];
- }
- public function addInvalidEmail(string $invalidEmail) {
- $this->invalidEmails[] = $invalidEmail;
- }
- public function addStatusChange(array $statusChange) {
- $this->statusChanges[] = $statusChange;
- $this->contactListIds[$statusChange['contactlist_id']] = $statusChange['contactlist_id'];
- }
- public function setNewContactIds(array $ids) {
- $this->newContactIds = $ids;
- }
- public function setExistingContactIds(array $ids) {
- $this->existingContactIds = $ids;
- }
- public function setAllContactIds(array $ids) {
- $this->allContactIds = $ids;
- }
- /**
- * @return array
- */
- public function & getInvalidEmails() : array {
- return $this->invalidEmails;
- }
- /**
- * @return array
- */
- public function & getStatusChanges() : array {
- return $this->statusChanges;
- }
- /**
- * @return int[]
- */
- public function & getAllContactIds() : array {
- return $this->allContactIds;
- }
- /**
- * @return int[]
- */
- public function & getContactListIds() : array {
- return $this->contactListIds;
- }
- /**
- * @return int[]
- */
- public function & getNewContactIds() : array {
- return $this->newContactIds;
- }
- /**
- * @return int[]
- */
- public function & getExistingContactIds() : array {
- return $this->existingContactIds;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement