<?php
namespace App\Entity;
use ApiPlatform\Metadata\GetCollection;
use ApiPlatform\Metadata\Patch;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\ApiProperty;
use ApiPlatform\Metadata\ApiFilter;
use ApiPlatform\Metadata\Post;
use App\Entity\Accounting\Draft;
use App\Entity\Accounting\OADA\CompanyAccount;
use App\Entity\Accounting\OADA\FiscalYear;
use App\Entity\Accounting\OADA\OADAAccount;
use App\Entity\Accounting\OADA\OperationAccount;
use App\Entity\Accounting\OADA\Transaction;
use App\Entity\Docs\Finance\AccountProject;
use App\Entity\Docs\Finance\CashReturn;
use App\Entity\Docs\Finance\Justification;
use App\Entity\Docs\Finance\Payment\Membre\Account;
use App\Entity\Docs\Finance\Payment\Operation;
use App\Entity\Docs\Finance\Payment\Transfer;
use App\Entity\Docs\Finance\V2\Budget\BudgetSection;
use App\Entity\Docs\Gouv\F01;
use App\Entity\Docs\Gouv\F02;
use App\Entity\Docs\Gouv\F03;
use App\Entity\Logistics\V2\AssetManagement\MaterialAsset;
use App\Entity\Logistics\V2\AssetManagement\TypeMaterialAsset;
use App\Entity\Logistics\V2\AssetManagement\UseOfAsset;
use App\Entity\Utils\Contact;
use App\Entity\Docs\Task\Task;
use App\Entity\Address\Address;
use App\Entity\Company\Company;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Department\Section;
use App\Repository\UserRepository;
use App\Entity\Department\Activity;
use App\Entity\Docs\Finance\Budget;
use App\Entity\Docs\Logistic\Quote;
use App\Entity\Docs\Finance\Airtime;
use App\Entity\Docs\Finance\Funding;
use App\Entity\Docs\Finance\Payment;
use App\Entity\Docs\Finance\Project;
use App\Entity\Docs\Finance\Receipt;
use App\Entity\Utils\TimestampTrait;
use App\Entity\Department\Department;
use App\Entity\Docs\Logistic\Provider;
use App\Entity\Docs\Finance\BudgetLine;
use App\Entity\Docs\Gouv\Census\Census;
use App\Entity\Docs\Gouv\Census\Member;
use App\Entity\Docs\Finance\CashJournal;
use App\Entity\Docs\Finance\Requisition;
use App\Entity\Docs\HumanResource\Award;
use App\Entity\Docs\HumanResource\Leave;
use App\Entity\Docs\Administration\Visit;
use App\Entity\Utils\AccountVerification;
use App\Entity\Docs\Gouv\Police\Procedure;
use App\Entity\Docs\Gouv\Population\Birth;
use App\Entity\Docs\Gouv\Population\Death;
use App\Entity\Docs\HumanResource\Caution;
use App\Controller\Api\UserPatchController;
use App\Entity\Docs\Administration\Courier;
use App\Entity\Docs\Finance\AccountJournal;
use App\Entity\Docs\HumanResource\Contract;
use App\Entity\Docs\HumanResource\Presence;
use App\Entity\Docs\Logistic\PurchaseOrder;
use Doctrine\Common\Collections\Collection;
use App\Entity\Docs\Gouv\Population\Wedding;
use App\Entity\Docs\Finance\BudgetMonitoring;
use App\Entity\Docs\Gouv\Finance\DepositSlip;
use App\Entity\Docs\HumanResource\Perfomance;
use App\Entity\Docs\Finance\BackgroundReceipt;
use App\Controller\Api\Auth\UserLoadController;
use App\Entity\Docs\Gouv\Population\Emigration;
use App\Entity\Docs\Gouv\Population\Imigration;
use App\Entity\Docs\HumanResource\Disciplinary;
use Doctrine\Common\Collections\ArrayCollection;
use App\Entity\Docs\HumanResource\JobDescription;
use App\Entity\Docs\Gouv\Census\ForeignPopulation;
use App\Entity\Docs\Gouv\Census\InternalPopulation;
use App\Entity\Docs\Gouv\PMEA\OpeningAuthorization;
use Symfony\Component\Serializer\Annotation\Groups;
use App\Entity\Docs\Finance\Requisition\Observation;
use Symfony\Component\Security\Core\User\UserInterface;
use App\Entity\Docs\Administration\ExternalCommunication;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use App\Entity\Utils\RMQTrait;
use App\State\Providers\AllUsersByCompanyUserProcessor;
use App\State\UserProfileProvider;
use Symfony\Component\Validator\Constraints as Assert;
use App\State\User\UserProcessor;
/**
* @ORM\HasLifecycleCallbacks ()
* @ORM\Entity (repositoryClass=UserRepository::class)
* @UniqueEntity (fields={"email"}, message="There is already an account with this email")
* @UniqueEntity (fields={"phoneNumber"}, message="There is already an account with this phone number")
*/
#[GetCollection(
uriTemplate:"/v2/users/my_company",
provider:AllUsersByCompanyUserProcessor::class,
normalizationContext:["groups" => ["user.info"]],
)]
#[GetCollection(
uriTemplate:"/user/other/profile",
provider:UserProfileProvider::class,
normalizationContext:["groups" => ["user.info"]],
)]
#[
Post(
uriTemplate:"/v2/user/",
//provider:
processor: UserProcessor::class
)
]
class User implements UserInterface, PasswordAuthenticatedUserInterface
{
use TimestampTrait, RMQTrait;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column (type="integer")
* @Groups ({"user:fRead", "app:params:get","rmq:user","user.info"})
*/
#[ApiProperty(identifier: false)]
private $id;
/**
* @ORM\Column(type="string", length=180, unique=true)
* @Groups({"user.details", "app:params:get", "user.patch","rmq:user"})
*/
#[Assert\NotBlank()]
#[Assert\NotNull()]
#[Assert\Email()]
private $email;
/**
* @ORM\Column(type="json")
* @Groups({"user.details","rmq:user"})
*/
private $roles = [];
/**
* @var string The hashed password
* @ORM\Column(type="string")
* @Groups({"user.patch"})
*/
#[Assert\NotBlank()]
#[Assert\NotNull()]
private $password;
/**
* @ORM\Column(type="boolean")
*/
private $isVerified = false;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"user.details", "app:params:get", "user.info", "user.patch","rmq:user"})
*/
#[Assert\NotBlank()]
#[Assert\NotNull()]
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"user.details", "app:params:get", "user.patch","rmq:user","user.info"})
*/
#[Assert\NotBlank()]
#[Assert\NotNull()]
private $lastname;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"user.details", "app:params:get", "user.info", "user.patch","rmq:user"})
*/
#[Assert\NotBlank()]
#[Assert\NotNull()]
private $firstname;
/**
* @ORM\Column(type="string", length=255, nullable=true, unique=true)
* @Groups({"user.details"})
*/
private $username;
/**
* @Groups({"user.details", "app:params:get","user.info", "user.patch","user:fRead","requisition:fread","requisition:read","requisition:create","payment:read","receipt:fRead","atime:fread","presence:read"})
*/
protected $names;
/**
* @Groups({"user.details", "user.patch","requisition:fread","requisition:read","requisition:create","payment:read"})
*/
private $fullname;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"user.details", "user.patch"})
*/
private $sexe;
/**
* @ORM\Column (type="string", length=255, unique=true)
* @Groups ({
* "user.details",
* "id",
* "user.patch",
* "requisition:fread",
* "requisition:read",
* "payment:read",
* "receipt:fRead",
* "atime:fread",
* "rmq:user",
* "user.info"
* })
*/
#[Assert\NotBlank()]
#[Assert\NotNull()]
#[ApiProperty(description: 'The phone number', identifier: true)]
private $phoneNumber;
/**
* @var string|null
* @ORM\Column(type="string", length=255, unique=true, nullable=true)
* @Groups({"user.details"})
*/
private $apiToken;
/**
* @ORM\OneToOne(targetEntity=Address::class, cascade={"persist", "remove"})
*/
private $address;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Utils\AccountVerification", cascade={"persist", "remove"})
*/
private $accountVerification;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Department\Department", inversedBy="users")
* @Groups({
* "user:fRead",
* "requisition:fread",
* "receipt:fRead",
* "atime:fread",
* "presence:read",
* "rmq:user",
* "user.details"
* })
*/
private $department;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Company\Company", inversedBy="users")
*/
private $company;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $state;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Company\Company", inversedBy="owners")
*/
private $companyOwner;
/**
* @ORM\ManyToMany(targetEntity="App\Entity\Department\Section", inversedBy="users")
*/
private $sections;
/**
* @ORM\OneToMany(targetEntity=Visit::class, mappedBy="personVisited")
*/
private $visits;
/**
* @ORM\OneToMany(targetEntity=JobDescription::class, mappedBy="agentIntended")
*/
private $jobDescriptions;
/**
* @ORM\OneToMany(targetEntity=Disciplinary::class, mappedBy="intendedFor")
*/
private $disciplinaries;
/**
* @ORM\ManyToOne(targetEntity=Activity::class, inversedBy="users")
*/
private $functionDep;
/**
* @ORM\OneToMany(targetEntity=Contact::class, mappedBy="user")
*/
private $contacts;
/**
* @ORM\OneToMany(targetEntity=Courier::class, mappedBy="owner")
*/
private $couriers;
/**
* @ORM\OneToMany(targetEntity=ExternalCommunication::class, mappedBy="owner")
*/
private $externalCommunications;
/**
* @ORM\OneToMany(targetEntity=Visit::class, mappedBy="owner")
*/
private $ownerVisits;
/**
* @ORM\OneToMany(targetEntity=F02::class, mappedBy="owner")
*/
private $f02s;
/**
* @ORM\OneToMany(targetEntity=F01::class, mappedBy="owner")
*/
private $f01s;
/**
* @ORM\OneToMany(targetEntity=F03::class, mappedBy="owner")
*/
private $f03s;
/**
* @ORM\OneToMany(targetEntity=Member::class, mappedBy="owner")
*/
private $members;
/**
* @ORM\OneToMany(targetEntity=Census::class, mappedBy="owner")
*/
private $censuses;
/**
* @ORM\OneToMany(targetEntity=ForeignPopulation::class, mappedBy="owner")
*/
private $foreignPopulations;
/**
* @ORM\OneToMany(targetEntity=InternalPopulation::class, mappedBy="owner")
*/
private $internalPopulations;
/**
* @ORM\OneToMany(targetEntity=DepositSlip::class, mappedBy="accountingOfficer")
*/
private $depositSlips;
/**
* @ORM\OneToMany(targetEntity=DepositSlip::class, mappedBy="owner")
*/
private $ownerDepositSlips;
/**
* @ORM\OneToMany(targetEntity=OpeningAuthorization::class, mappedBy="owner")
*/
private $openingAuthorizations;
/**
* @ORM\OneToMany(targetEntity=Procedure::class, mappedBy="owner")
*/
private $procedures;
/**
* @ORM\OneToMany(targetEntity=Birth::class, mappedBy="owner")
*/
private $births;
/**
* @ORM\OneToMany(targetEntity=Death::class, mappedBy="owner")
*/
private $deaths;
/**
* @ORM\OneToMany(targetEntity=Emigration::class, mappedBy="owner")
*/
private $emigrations;
/**
* @ORM\OneToMany(targetEntity=Imigration::class, mappedBy="owner")
*/
private $imigrations;
/**
* @ORM\OneToMany(targetEntity=Wedding::class, mappedBy="owner")
*/
private $weddings;
/**
* @ORM\OneToMany(targetEntity=BackgroundReceipt::class, mappedBy="owner")
*/
private $backgroundReceipts;
/**
* @ORM\OneToMany(targetEntity=AccountJournal::class, mappedBy="owner")
*/
private $accountJournals;
/**
* @ORM\OneToMany(targetEntity=CashJournal::class, mappedBy="owner")
*/
private $cashJournals;
/**
* @ORM\OneToMany(targetEntity=BudgetMonitoring::class, mappedBy="owner")
*/
private $budgetMonitorings;
/**
* @ORM\OneToMany(targetEntity=Provider::class, mappedBy="owner")
*/
private $providers;
/**
* @ORM\OneToMany(targetEntity=Quote::class, mappedBy="owner")
*/
private $quotes;
/**
* @ORM\OneToMany(targetEntity=PurchaseOrder::class, mappedBy="owner")
*/
private $purchaseOrders;
/**
* @ORM\OneToMany(targetEntity=Project::class, mappedBy="owner")
*/
private $projects;
/**
* @ORM\OneToMany(targetEntity=BudgetLine::class, mappedBy="owner")
*/
private $budgetLines;
/**
* @ORM\OneToMany(targetEntity=Funding::class, mappedBy="owner")
*/
private $fundings;
/**
* @ORM\OneToMany(targetEntity=Payment::class, mappedBy="owner")
*/
private $payments;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="owner")
*/
private $requisitions;
/**
* @ORM\OneToMany(targetEntity=Contract::class, mappedBy="concernerd")
*/
private $contracts;
/**
* @ORM\OneToMany(targetEntity=Perfomance::class, mappedBy="concerned")
*/
private $perfomances;
/**
* @ORM\OneToMany(targetEntity=Leave::class, mappedBy="concerned")
*/
private $leaves;
/**
* @ORM\OneToMany(targetEntity=Leave::class, mappedBy="agentProcessed")
*/
private $agentProcessedLeaves;
/**
* @ORM\OneToMany(targetEntity=Perfomance::class, mappedBy="agentProcessed")
*/
private $agentProcessedPerfomances;
/**
* @ORM\OneToMany(targetEntity=Contract::class, mappedBy="agentProcessed")
*/
private $agentProcessedContracts;
/**
* @ORM\OneToMany(targetEntity=JobDescription::class, mappedBy="agentProcessed")
*/
private $agentProcessedJobDescription;
/**
* @ORM\OneToMany(targetEntity=Caution::class, mappedBy="concerned")
*/
private $cautions;
/**
* @ORM\OneToMany(targetEntity=Caution::class, mappedBy="agentProcessed")
*/
private $agentProcessedCaution;
/**
* @ORM\OneToMany(targetEntity=Presence::class, mappedBy="agent")
*/
private $presences;
/**
* @ORM\OneToMany(targetEntity=Presence::class, mappedBy="agentProcess")
*/
private $agentPresences;
/**
* @ORM\OneToMany(targetEntity=Receipt::class, mappedBy="owner")
*/
private $receipts;
/**
* @ORM\OneToMany(targetEntity=Receipt::class, mappedBy="agentProcessed")
*/
private $receiptAgents;
/**
* @ORM\OneToMany(targetEntity=Award::class, mappedBy="pretending")
*/
private $awards;
/**
* @ORM\OneToMany(targetEntity=Award::class, mappedBy="owner")
*/
private $ownerAwards;
/**
* @ORM\OneToMany(targetEntity=Budget::class, mappedBy="agentProcessed")
*/
private $budgets;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="financeDeal")
*/
private $fRequisitions;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="managementDeal")
*/
private $mRequisitions;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="departmentDeal")
*/
private $dRequisitions;
/**
* @ORM\OneToMany(targetEntity=Observation::class, mappedBy="signedBy")
*/
private $observations;
/**
* @ORM\ManyToOne(targetEntity=Project::class, inversedBy="users")
*/
private $project;
/**
* @ORM\OneToMany(targetEntity=Task::class, mappedBy="owner")
*/
private $tasks;
/**
* @ORM\ManyToMany(targetEntity=Task::class, mappedBy="suggest")
*/
private $suggestTasks;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="financeManagerDeal")
*/
private $fMRequisitions;
/**
* @ORM\OneToMany(targetEntity=Payment::class, mappedBy="managementDeal")
*/
private $mPayments;
/**
* @ORM\OneToMany(targetEntity=Payment::class, mappedBy="checkoutDeal")
*/
private $cPayments;
/**
* @ORM\OneToMany(targetEntity=Airtime::class, mappedBy="owner")
*/
private $airtimes;
/**
* @ORM\OneToMany(targetEntity=Airtime::class, mappedBy="agentProcessed")
*/
private $agtAirtimes;
/**
* @ORM\ManyToMany(targetEntity=Requisition::class, mappedBy="viewBy")
*/
private $requisitionViews;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="checkoutDeal")
*/
private $ckRequisitions;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="checkoutReturnBy")
*/
private $cRBRequisitions;
/**
* @ORM\OneToMany(targetEntity=AccountProject::class, mappedBy="agentProcessed")
*/
private $accountProjects;
/**
* @ORM\OneToMany(targetEntity=Operation::class, mappedBy="owner")
*/
private $operations;
/**
* @ORM\OneToMany(targetEntity=Account::class, mappedBy="owner")
*/
private $accounts;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\Docs\Finance\Payment\Membre\Operation::class, mappedBy="member")
*/
private $deposits;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="children")
*/
private $parent;
/**
* @ORM\OneToMany(targetEntity=User::class, mappedBy="parent")
*/
private $children;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\Docs\Finance\Payment\Membre\Operation::class, mappedBy="member")
*/
//private $memberOperations;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $country;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $KindMember;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $grade;
/**
* @ORM\OneToMany(targetEntity=AccountVerification::class, mappedBy="confirmedBy")
*/
private $accountVerifications;
/**
* @ORM\OneToMany(targetEntity=Transfer::class, mappedBy="agentProcessed")
*/
private $transfers;
private $code;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isAdminFinance;
/**
* @ORM\OneToMany(targetEntity=MaterialAsset::class, mappedBy="agentProcessor")
*/
private $materialAssets;
/**
* @ORM\OneToMany(targetEntity=UseOfAsset::class, mappedBy="user")
*/
private $useOfAssets;
/**
* @ORM\OneToMany(targetEntity=TypeMaterialAsset::class, mappedBy="agentProcessor")
*/
private $typeMaterialAssets;
/**
* @ORM\OneToMany(targetEntity=UseOfAsset::class, mappedBy="agentClose")
*/
private $useOfAssetsClosed;
/**
* @ORM\OneToMany(targetEntity=UseOfAsset::class, mappedBy="receiptValidationUser")
*/
private $useOfAssetsValidateReceipt;
/**
* @ORM\OneToMany(targetEntity=UseOfAsset::class, mappedBy="discountValidationUser")
*/
private $useOfAssetDiscountValidate;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\Docs\Finance\V2\Budget\BudgetLine::class, mappedBy="manager")
*/
private $budgetLinesV2;
/**
* @ORM\OneToMany(targetEntity=BudgetSection::class, mappedBy="manager")
*/
private $budgetSections;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $authCode;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $authIAt;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\Docs\Finance\V2\Budget\Budget::class, mappedBy="agentProcessor")
*/
private $budgetProcessor;
/**
* @ORM\OneToMany(targetEntity=BudgetSection::class, mappedBy="agentProccessor")
*/
private $budgetSectionsCreated;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\Docs\Finance\V2\Budget\BudgetLine::class, mappedBy="agentProcessing")
*/
private $budgetLinesCreated;
/**
* @ORM\OneToMany(targetEntity=OADAAccount::class, mappedBy="agentProcessor")
*/
private $oADAAccounts;
/**
* @ORM\OneToMany(targetEntity=FiscalYear::class, mappedBy="agentProcessor")
*/
private $fiscalYears;
/**
* @ORM\OneToMany(targetEntity=Transaction::class, mappedBy="agentProcessor")
*/
private $transactionsCheckout;
/**
* @ORM\OneToMany(targetEntity=CompanyAccount::class, mappedBy="agentProcessor")
*/
private $companyAccountsInitialize;
/**
* @ORM\OneToMany(targetEntity=Transaction::class, mappedBy="agentValidator")
*/
private $transactionsValidate;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\Accounting\OADA\AccountJournal::class, mappedBy="cashier")
*/
private $accountJournalsCashier;
/**
* @ORM\OneToMany(targetEntity=Draft::class, mappedBy="user")
*/
private $drafts;
/**
* @ORM\OneToMany(targetEntity=\App\Entity\Accounting\OADA\AccountJournal::class, mappedBy="accountant")
*/
private $accountJournalsAccountant;
/**
* @ORM\OneToMany(targetEntity=ParamsApp::class, mappedBy="userProcessor")
*/
private $paramsApps;
/**
* @ORM\OneToMany(targetEntity=ChangeRate::class, mappedBy="userProcessor")
*/
private $changeRates;
/**
* @ORM\OneToMany(targetEntity=Justification::class, mappedBy="agentProcessed")
*/
private $justifications;
/**
* @ORM\OneToMany(targetEntity=CashReturn::class, mappedBy="agentProcessed")
*/
private $cashReturns;
/**
* @ORM\OneToMany(targetEntity=Transaction::class, mappedBy="dirValidator")
*/
private $transactionDirValidate;
/**
* @ORM\OneToMany(targetEntity=Justification::class, mappedBy="validateAgent")
*/
private $justificationsValidate;
/**
* @ORM\OneToMany(targetEntity=CashReturn::class, mappedBy="agentSign")
*/
private $cashReturnsSign;
/**
* @ORM\OneToMany(targetEntity=OperationAccount::class, mappedBy="deletedBy")
*/
private $optAccountsDeleted;
/**
* @ORM\OneToMany(targetEntity=Requisition::class, mappedBy="optDeal")
*/
private $optSignReqs;
public function __construct()
{
$this->sections = new ArrayCollection();
$this->visits = new ArrayCollection();
$this->jobDescriptions = new ArrayCollection();
$this->disciplinaries = new ArrayCollection();
$this->contacts = new ArrayCollection();
$this->couriers = new ArrayCollection();
$this->externalCommunications = new ArrayCollection();
$this->ownerVisits = new ArrayCollection();
$this->f02s = new ArrayCollection();
$this->f01s = new ArrayCollection();
$this->f03s = new ArrayCollection();
$this->members = new ArrayCollection();
$this->censuses = new ArrayCollection();
$this->foreignPopulations = new ArrayCollection();
$this->internalPopulations = new ArrayCollection();
$this->depositSlips = new ArrayCollection();
$this->ownerDepositSlips = new ArrayCollection();
$this->openingAuthorizations = new ArrayCollection();
$this->procedures = new ArrayCollection();
$this->births = new ArrayCollection();
$this->deaths = new ArrayCollection();
$this->emigrations = new ArrayCollection();
$this->imigrations = new ArrayCollection();
$this->weddings = new ArrayCollection();
$this->backgroundReceipts = new ArrayCollection();
$this->accountJournals = new ArrayCollection();
$this->cashJournals = new ArrayCollection();
$this->budgetMonitorings = new ArrayCollection();
$this->providers = new ArrayCollection();
$this->quotes = new ArrayCollection();
$this->purchaseOrders = new ArrayCollection();
$this->projects = new ArrayCollection();
$this->budgetLines = new ArrayCollection();
$this->fundings = new ArrayCollection();
$this->payments = new ArrayCollection();
$this->requisitions = new ArrayCollection();
$this->username = base64_encode(uniqid());
$this->contracts = new ArrayCollection();
$this->perfomances = new ArrayCollection();
$this->leaves = new ArrayCollection();
$this->agentProcessedLeaves = new ArrayCollection();
$this->agentProcessedPerfomances = new ArrayCollection();
$this->agentProcessedContracts = new ArrayCollection();
$this->agentProcessedJobDescription = new ArrayCollection();
$this->cautions = new ArrayCollection();
$this->agentProcessedCaution = new ArrayCollection();
$this->presences = new ArrayCollection();
$this->agentPresences = new ArrayCollection();
$this->receipts = new ArrayCollection();
$this->receiptAgents = new ArrayCollection();
$this->awards = new ArrayCollection();
$this->ownerAwards = new ArrayCollection();
$this->budgets = new ArrayCollection();
$this->fRequisitions = new ArrayCollection();
$this->mRequisitions = new ArrayCollection();
$this->dRequisitions = new ArrayCollection();
$this->observations = new ArrayCollection();
$this->tasks = new ArrayCollection();
$this->suggestTasks = new ArrayCollection();
$this->fMRequisitions = new ArrayCollection();
$this->mPayments = new ArrayCollection();
$this->cPayments = new ArrayCollection();
$this->airtimes = new ArrayCollection();
$this->agtAirtimes = new ArrayCollection();
$this->requisitionViews = new ArrayCollection();
$this->ckRequisitions = new ArrayCollection();
$this->cRBRequisitions = new ArrayCollection();
$this->accountProjects = new ArrayCollection();
$this->operations = new ArrayCollection();
$this->accounts = new ArrayCollection();
$this->deposits = new ArrayCollection();
$this->children = new ArrayCollection();
$this->memberOperations = new ArrayCollection();
$this->accountVerifications = new ArrayCollection();
$this->transfers = new ArrayCollection();
$this->materialAssets = new ArrayCollection();
$this->useOfAssets = new ArrayCollection();
$this->typeMaterialAssets = new ArrayCollection();
$this->useOfAssetsClosed = new ArrayCollection();
$this->useOfAssetsValidateReceipt = new ArrayCollection();
$this->useOfAssetDiscountValidate = new ArrayCollection();
$this->budgetLinesV2 = new ArrayCollection();
$this->budgetSections = new ArrayCollection();
$this->budgetProcessor = new ArrayCollection();
$this->budgetSectionsCreated = new ArrayCollection();
$this->budgetLinesCreated = new ArrayCollection();
$this->oADAAccounts = new ArrayCollection();
$this->fiscalYears = new ArrayCollection();
$this->transactionsCheckout = new ArrayCollection();
$this->companyAccountsInitialize = new ArrayCollection();
$this->transactionsValidate = new ArrayCollection();
$this->accountJournalsCashier = new ArrayCollection();
$this->drafts = new ArrayCollection();
$this->accountJournalsAccountant = new ArrayCollection();
$this->paramsApps = new ArrayCollection();
$this->changeRates = new ArrayCollection();
$this->justifications = new ArrayCollection();
$this->cashReturns = new ArrayCollection();
$this->transactionDirValidate = new ArrayCollection();
$this->justificationsValidate = new ArrayCollection();
$this->cashReturnsSign = new ArrayCollection();
$this->optAccountsDeleted = new ArrayCollection();
$this->optSignReqs = new ArrayCollection();
}
public function getId()
{
return $this->id;
return "BHD" . "_" . $this->id . '_' . (int) $this->getPhoneNumber();
}
public function getCode()
{
return $this->id;
// return "BHD" . "_" . $this->id . '_' . (int) $this->getPhoneNumber();
}
/**
* A visual identifier that represents this user.
*
* @see UserInterface
*/
public function getUserIdentifier() : string
{
return (string) $this->email;
}
public function getEmail() : ?string
{
return $this->email;
}
public function setEmail(string $email) : self
{
$this->email = $email;
return $this;
}
public function getUsername() : ?string
{
return $this->username;
}
public function setUsername(string $username) : self
{
$this->username = $username;
return $this;
}
public function getRoles() : ?array
{
return $this->roles;
}
/**
* @return string|null
*/
public function getApiToken() : ?string
{
return $this->apiToken;
}
/**
* @param string|null $apiToken
*/
public function setApiToken(?string $apiToken) : void
{
$this->apiToken = $apiToken;
}
public function setRoles(array $roles) : self
{
$this->roles = $roles;
return $this;
}
public function getPassword() : ?string
{
return $this->password;
}
public function setPassword(string $password) : self
{
$this->password = $password;
return $this;
}
/**
* @see UserInterface
*/
public function getSalt()
{
// not needed when using the "bcrypt" algorithm in security.yaml
}
/**
* @see UserInterface
*/
public function eraseCredentials()
{
// If you store any temporary, sensitive data on the user, clear it here
// $this->plainPassword = null;
}
public function isVerified() : bool
{
return $this->isVerified;
}
public function setIsVerified(bool $isVerified) : self
{
$this->isVerified = $isVerified;
return $this;
}
public function getName() : ?string
{
return $this->name;
}
public function setName(string $name) : self
{
$this->name = $name;
return $this;
}
public function getLastname() : ?string
{
return $this->lastname;
}
public function setLastname(?string $lastname) : self
{
$this->lastname = $lastname;
return $this;
}
public function getFirstname() : ?string
{
return $this->firstname;
}
public function setFirstname(string $firstname) : self
{
$this->firstname = $firstname;
return $this;
}
public function getNames() : ?string
{
return strtoupper($this->name) . " " . ucfirst($this->lastname) . " " . ucfirst($this->firstname);
}
public function getFullname() : ?string
{
return ucfirst($this->firstname) . " " . strtoupper($this->name);
}
public function getSexe() : ?string
{
return $this->sexe;
}
public function setSexe(string $sexe) : self
{
$this->sexe = $sexe;
return $this;
}
public function getPhoneNumber() : ?string
{
return $this->phoneNumber;
}
public function setPhoneNumber(string $phoneNumber) : self
{
$this->phoneNumber = $phoneNumber;
return $this;
}
public function getIsVerified() : ?bool
{
return $this->isVerified;
}
public function getAddress() : ?Address
{
return $this->address;
}
public function setAddress(?Address $address) : self
{
$this->address = $address;
return $this;
}
public function getState() : ?string
{
return $this->state;
}
public function setState(?string $state) : self
{
$this->state = $state;
return $this;
}
public function getAccountVerification() : ?AccountVerification
{
return $this->accountVerification;
}
public function setAccountVerification(?AccountVerification $accountVerification) : self
{
$this->accountVerification = $accountVerification;
return $this;
}
public function getDepartment() : ?Department
{
return $this->department;
}
public function setDepartment(?Department $department) : self
{
$this->department = $department;
return $this;
}
public function getCompany() : ?Company
{
return $this->company;
}
public function setCompany(?Company $company) : self
{
$this->company = $company;
return $this;
}
public function getCompanyOwner() : ?Company
{
return $this->companyOwner;
}
public function setCompanyOwner(?Company $companyOwner) : self
{
$this->companyOwner = $companyOwner;
return $this;
}
/**
* @return Collection|Section[]
*/
public function getSections() : Collection
{
return $this->sections;
}
public function addSection(Section $section) : self
{
if (!$this->sections->contains($section)) {
$this->sections[] = $section;
}
return $this;
}
public function removeSection(Section $section) : self
{
if ($this->sections->contains($section)) {
$this->sections->removeElement($section);
}
return $this;
}
/**
* @return Collection|Visit[]
*/
public function getVisits() : Collection
{
return $this->visits;
}
public function addVisit(Visit $visit) : self
{
if (!$this->visits->contains($visit)) {
$this->visits[] = $visit;
$visit->setPersonVisited($this);
}
return $this;
}
public function removeVisit(Visit $visit) : self
{
if ($this->visits->contains($visit)) {
$this->visits->removeElement($visit);
// set the owning side to null (unless already changed)
if ($visit->getPersonVisited() === $this) {
$visit->setPersonVisited(null);
}
}
return $this;
}
/**
* @return Collection|JobDescription[]
*/
public function getJobDescriptions() : Collection
{
return $this->jobDescriptions;
}
public function addJobDescription(JobDescription $jobDescription) : self
{
if (!$this->jobDescriptions->contains($jobDescription)) {
$this->jobDescriptions[] = $jobDescription;
$jobDescription->setAgentIntended($this);
}
return $this;
}
public function removeJobDescription(JobDescription $jobDescription) : self
{
if ($this->jobDescriptions->contains($jobDescription)) {
$this->jobDescriptions->removeElement($jobDescription);
// set the owning side to null (unless already changed)
if ($jobDescription->getAgentIntended() === $this) {
$jobDescription->setAgentIntended(null);
}
}
return $this;
}
/**
* @return Collection|Disciplinary[]
*/
public function getDisciplinaries() : Collection
{
return $this->disciplinaries;
}
public function addDisciplinary(Disciplinary $disciplinary) : self
{
if (!$this->disciplinaries->contains($disciplinary)) {
$this->disciplinaries[] = $disciplinary;
$disciplinary->setIntendedFor($this);
}
return $this;
}
public function removeDisciplinary(Disciplinary $disciplinary) : self
{
if ($this->disciplinaries->contains($disciplinary)) {
$this->disciplinaries->removeElement($disciplinary);
// set the owning side to null (unless already changed)
if ($disciplinary->getIntendedFor() === $this) {
$disciplinary->setIntendedFor(null);
}
}
return $this;
}
public function getFunctionDep() : ?Activity
{
return $this->functionDep;
}
public function setFunctionDep(?Activity $functionDep) : self
{
$this->functionDep = $functionDep;
return $this;
}
/**
* @return Collection|Contact[]
*/
public function getContacts() : Collection
{
return $this->contacts;
}
public function addContact(Contact $contact) : self
{
if (!$this->contacts->contains($contact)) {
$this->contacts[] = $contact;
$contact->setUser($this);
}
return $this;
}
public function removeContact(Contact $contact) : self
{
if ($this->contacts->contains($contact)) {
$this->contacts->removeElement($contact);
// set the owning side to null (unless already changed)
if ($contact->getUser() === $this) {
$contact->setUser(null);
}
}
return $this;
}
/**
* @return Collection|Courier[]
*/
public function getCouriers() : Collection
{
return $this->couriers;
}
public function addCourier(Courier $courier) : self
{
if (!$this->couriers->contains($courier)) {
$this->couriers[] = $courier;
$courier->setOwner($this);
}
return $this;
}
public function removeCourier(Courier $courier) : self
{
if ($this->couriers->contains($courier)) {
$this->couriers->removeElement($courier);
// set the owning side to null (unless already changed)
if ($courier->getOwner() === $this) {
$courier->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|ExternalCommunication[]
*/
public function getExternalCommunications() : Collection
{
return $this->externalCommunications;
}
public function addExternalCommunication(ExternalCommunication $externalCommunication) : self
{
if (!$this->externalCommunications->contains($externalCommunication)) {
$this->externalCommunications[] = $externalCommunication;
$externalCommunication->setOwner($this);
}
return $this;
}
public function removeExternalCommunication(ExternalCommunication $externalCommunication) : self
{
if ($this->externalCommunications->contains($externalCommunication)) {
$this->externalCommunications->removeElement($externalCommunication);
// set the owning side to null (unless already changed)
if ($externalCommunication->getOwner() === $this) {
$externalCommunication->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Visit[]
*/
public function getOwnerVisits() : Collection
{
return $this->ownerVisits;
}
public function addOwnerVisit(Visit $ownerVisit) : self
{
if (!$this->ownerVisits->contains($ownerVisit)) {
$this->ownerVisits[] = $ownerVisit;
$ownerVisit->setOwner($this);
}
return $this;
}
public function removeOwnerVisit(Visit $ownerVisit) : self
{
if ($this->ownerVisits->contains($ownerVisit)) {
$this->ownerVisits->removeElement($ownerVisit);
// set the owning side to null (unless already changed)
if ($ownerVisit->getOwner() === $this) {
$ownerVisit->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|F02[]
*/
public function getF02s() : Collection
{
return $this->f02s;
}
public function addF02(F02 $f02) : self
{
if (!$this->f02s->contains($f02)) {
$this->f02s[] = $f02;
$f02->setOwner($this);
}
return $this;
}
public function removeF02(F02 $f02) : self
{
if ($this->f02s->contains($f02)) {
$this->f02s->removeElement($f02);
// set the owning side to null (unless already changed)
if ($f02->getOwner() === $this) {
$f02->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|F01[]
*/
public function getF01s() : Collection
{
return $this->f01s;
}
public function addF01(F01 $f01) : self
{
if (!$this->f01s->contains($f01)) {
$this->f01s[] = $f01;
$f01->setOwner($this);
}
return $this;
}
public function removeF01(F01 $f01) : self
{
if ($this->f01s->contains($f01)) {
$this->f01s->removeElement($f01);
// set the owning side to null (unless already changed)
if ($f01->getOwner() === $this) {
$f01->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|F03[]
*/
public function getF03s() : Collection
{
return $this->f03s;
}
public function addF03(F03 $f03) : self
{
if (!$this->f03s->contains($f03)) {
$this->f03s[] = $f03;
$f03->setOwner($this);
}
return $this;
}
public function removeF03(F03 $f03) : self
{
if ($this->f03s->contains($f03)) {
$this->f03s->removeElement($f03);
// set the owning side to null (unless already changed)
if ($f03->getOwner() === $this) {
$f03->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Member[]
*/
public function getMembers() : Collection
{
return $this->members;
}
public function addMember(Member $member) : self
{
if (!$this->members->contains($member)) {
$this->members[] = $member;
$member->setOwner($this);
}
return $this;
}
public function removeMember(Member $member) : self
{
if ($this->members->contains($member)) {
$this->members->removeElement($member);
// set the owning side to null (unless already changed)
if ($member->getOwner() === $this) {
$member->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Census[]
*/
public function getCensuses() : Collection
{
return $this->censuses;
}
public function addCensus(Census $census) : self
{
if (!$this->censuses->contains($census)) {
$this->censuses[] = $census;
$census->setOwner($this);
}
return $this;
}
public function removeCensus(Census $census) : self
{
if ($this->censuses->contains($census)) {
$this->censuses->removeElement($census);
// set the owning side to null (unless already changed)
if ($census->getOwner() === $this) {
$census->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|ForeignPopulation[]
*/
public function getForeignPopulations() : Collection
{
return $this->foreignPopulations;
}
public function addForeignPopulation(ForeignPopulation $foreignPopulation) : self
{
if (!$this->foreignPopulations->contains($foreignPopulation)) {
$this->foreignPopulations[] = $foreignPopulation;
$foreignPopulation->setOwner($this);
}
return $this;
}
public function removeForeignPopulation(ForeignPopulation $foreignPopulation) : self
{
if ($this->foreignPopulations->contains($foreignPopulation)) {
$this->foreignPopulations->removeElement($foreignPopulation);
// set the owning side to null (unless already changed)
if ($foreignPopulation->getOwner() === $this) {
$foreignPopulation->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|InternalPopulation[]
*/
public function getInternalPopulations() : Collection
{
return $this->internalPopulations;
}
public function addInternalPopulation(InternalPopulation $internalPopulation) : self
{
if (!$this->internalPopulations->contains($internalPopulation)) {
$this->internalPopulations[] = $internalPopulation;
$internalPopulation->setOwner($this);
}
return $this;
}
public function removeInternalPopulation(InternalPopulation $internalPopulation) : self
{
if ($this->internalPopulations->contains($internalPopulation)) {
$this->internalPopulations->removeElement($internalPopulation);
// set the owning side to null (unless already changed)
if ($internalPopulation->getOwner() === $this) {
$internalPopulation->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|DepositSlip[]
*/
public function getDepositSlips() : Collection
{
return $this->depositSlips;
}
public function addDepositSlip(DepositSlip $depositSlip) : self
{
if (!$this->depositSlips->contains($depositSlip)) {
$this->depositSlips[] = $depositSlip;
$depositSlip->setAccountingOfficer($this);
}
return $this;
}
public function removeDepositSlip(DepositSlip $depositSlip) : self
{
if ($this->depositSlips->contains($depositSlip)) {
$this->depositSlips->removeElement($depositSlip);
// set the owning side to null (unless already changed)
if ($depositSlip->getAccountingOfficer() === $this) {
$depositSlip->setAccountingOfficer(null);
}
}
return $this;
}
/**
* @return Collection|DepositSlip[]
*/
public function getOwnerDepositSlips() : Collection
{
return $this->ownerDepositSlips;
}
public function addOwnerDepositSlip(DepositSlip $ownerDepositSlip) : self
{
if (!$this->ownerDepositSlips->contains($ownerDepositSlip)) {
$this->ownerDepositSlips[] = $ownerDepositSlip;
$ownerDepositSlip->setOwner($this);
}
return $this;
}
public function removeOwnerDepositSlip(DepositSlip $ownerDepositSlip) : self
{
if ($this->ownerDepositSlips->contains($ownerDepositSlip)) {
$this->ownerDepositSlips->removeElement($ownerDepositSlip);
// set the owning side to null (unless already changed)
if ($ownerDepositSlip->getOwner() === $this) {
$ownerDepositSlip->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|OpeningAuthorization[]
*/
public function getOpeningAuthorizations() : Collection
{
return $this->openingAuthorizations;
}
public function addOpeningAuthorization(OpeningAuthorization $openingAuthorization) : self
{
if (!$this->openingAuthorizations->contains($openingAuthorization)) {
$this->openingAuthorizations[] = $openingAuthorization;
$openingAuthorization->setOwner($this);
}
return $this;
}
public function removeOpeningAuthorization(OpeningAuthorization $openingAuthorization) : self
{
if ($this->openingAuthorizations->contains($openingAuthorization)) {
$this->openingAuthorizations->removeElement($openingAuthorization);
// set the owning side to null (unless already changed)
if ($openingAuthorization->getOwner() === $this) {
$openingAuthorization->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Procedure[]
*/
public function getProcedures() : Collection
{
return $this->procedures;
}
public function addProcedure(Procedure $procedure) : self
{
if (!$this->procedures->contains($procedure)) {
$this->procedures[] = $procedure;
$procedure->setOwner($this);
}
return $this;
}
public function removeProcedure(Procedure $procedure) : self
{
if ($this->procedures->contains($procedure)) {
$this->procedures->removeElement($procedure);
// set the owning side to null (unless already changed)
if ($procedure->getOwner() === $this) {
$procedure->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Birth[]
*/
public function getBirths() : Collection
{
return $this->births;
}
public function addBirth(Birth $birth) : self
{
if (!$this->births->contains($birth)) {
$this->births[] = $birth;
$birth->setOwner($this);
}
return $this;
}
public function removeBirth(Birth $birth) : self
{
if ($this->births->contains($birth)) {
$this->births->removeElement($birth);
// set the owning side to null (unless already changed)
if ($birth->getOwner() === $this) {
$birth->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Death[]
*/
public function getDeaths() : Collection
{
return $this->deaths;
}
public function addDeath(Death $death) : self
{
if (!$this->deaths->contains($death)) {
$this->deaths[] = $death;
$death->setOwner($this);
}
return $this;
}
public function removeDeath(Death $death) : self
{
if ($this->deaths->contains($death)) {
$this->deaths->removeElement($death);
// set the owning side to null (unless already changed)
if ($death->getOwner() === $this) {
$death->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Emigration[]
*/
public function getEmigrations() : Collection
{
return $this->emigrations;
}
public function addEmigration(Emigration $emigration) : self
{
if (!$this->emigrations->contains($emigration)) {
$this->emigrations[] = $emigration;
$emigration->setOwner($this);
}
return $this;
}
public function removeEmigration(Emigration $emigration) : self
{
if ($this->emigrations->contains($emigration)) {
$this->emigrations->removeElement($emigration);
// set the owning side to null (unless already changed)
if ($emigration->getOwner() === $this) {
$emigration->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Imigration[]
*/
public function getImigrations() : Collection
{
return $this->imigrations;
}
public function addImigration(Imigration $imigration) : self
{
if (!$this->imigrations->contains($imigration)) {
$this->imigrations[] = $imigration;
$imigration->setOwner($this);
}
return $this;
}
public function removeImigration(Imigration $imigration) : self
{
if ($this->imigrations->contains($imigration)) {
$this->imigrations->removeElement($imigration);
// set the owning side to null (unless already changed)
if ($imigration->getOwner() === $this) {
$imigration->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Wedding[]
*/
public function getWeddings() : Collection
{
return $this->weddings;
}
public function addWedding(Wedding $wedding) : self
{
if (!$this->weddings->contains($wedding)) {
$this->weddings[] = $wedding;
$wedding->setOwner($this);
}
return $this;
}
public function removeWedding(Wedding $wedding) : self
{
if ($this->weddings->contains($wedding)) {
$this->weddings->removeElement($wedding);
// set the owning side to null (unless already changed)
if ($wedding->getOwner() === $this) {
$wedding->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|BackgroundReceipt[]
*/
public function getBackgroundReceipts() : Collection
{
return $this->backgroundReceipts;
}
public function addBackgroundReceipt(BackgroundReceipt $backgroundReceipt) : self
{
if (!$this->backgroundReceipts->contains($backgroundReceipt)) {
$this->backgroundReceipts[] = $backgroundReceipt;
$backgroundReceipt->setOwner($this);
}
return $this;
}
public function removeBackgroundReceipt(BackgroundReceipt $backgroundReceipt) : self
{
if ($this->backgroundReceipts->contains($backgroundReceipt)) {
$this->backgroundReceipts->removeElement($backgroundReceipt);
// set the owning side to null (unless already changed)
if ($backgroundReceipt->getOwner() === $this) {
$backgroundReceipt->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|AccountJournal[]
*/
public function getAccountJournals() : Collection
{
return $this->accountJournals;
}
public function addAccountJournal(AccountJournal $accountJournal) : self
{
if (!$this->accountJournals->contains($accountJournal)) {
$this->accountJournals[] = $accountJournal;
$accountJournal->setOnwer($this);
}
return $this;
}
public function removeAccountJournal(AccountJournal $accountJournal) : self
{
if ($this->accountJournals->contains($accountJournal)) {
$this->accountJournals->removeElement($accountJournal);
// set the owning side to null (unless already changed)
if ($accountJournal->getOnwer() === $this) {
$accountJournal->setOnwer(null);
}
}
return $this;
}
/**
* @return Collection|CashJournal[]
*/
public function getCashJournals() : Collection
{
return $this->cashJournals;
}
public function addCashJournal(CashJournal $cashJournal) : self
{
if (!$this->cashJournals->contains($cashJournal)) {
$this->cashJournals[] = $cashJournal;
$cashJournal->setOwner($this);
}
return $this;
}
public function removeCashJournal(CashJournal $cashJournal) : self
{
if ($this->cashJournals->contains($cashJournal)) {
$this->cashJournals->removeElement($cashJournal);
// set the owning side to null (unless already changed)
if ($cashJournal->getOwner() === $this) {
$cashJournal->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|BudgetMonitoring[]
*/
public function getBudgetMonitorings() : Collection
{
return $this->budgetMonitorings;
}
public function addBudgetMonitoring(BudgetMonitoring $budgetMonitoring) : self
{
if (!$this->budgetMonitorings->contains($budgetMonitoring)) {
$this->budgetMonitorings[] = $budgetMonitoring;
$budgetMonitoring->setOwner($this);
}
return $this;
}
public function removeBudgetMonitoring(BudgetMonitoring $budgetMonitoring) : self
{
if ($this->budgetMonitorings->contains($budgetMonitoring)) {
$this->budgetMonitorings->removeElement($budgetMonitoring);
// set the owning side to null (unless already changed)
if ($budgetMonitoring->getOwner() === $this) {
$budgetMonitoring->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Provider[]
*/
public function getProviders() : Collection
{
return $this->providers;
}
public function addProvider(Provider $provider) : self
{
if (!$this->providers->contains($provider)) {
$this->providers[] = $provider;
$provider->setOwner($this);
}
return $this;
}
public function removeProvider(Provider $provider) : self
{
if ($this->providers->contains($provider)) {
$this->providers->removeElement($provider);
// set the owning side to null (unless already changed)
if ($provider->getOwner() === $this) {
$provider->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Quote[]
*/
public function getQuotes() : Collection
{
return $this->quotes;
}
public function addQuote(Quote $quote) : self
{
if (!$this->quotes->contains($quote)) {
$this->quotes[] = $quote;
$quote->setOwner($this);
}
return $this;
}
public function removeQuote(Quote $quote) : self
{
if ($this->quotes->contains($quote)) {
$this->quotes->removeElement($quote);
// set the owning side to null (unless already changed)
if ($quote->getOwner() === $this) {
$quote->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|PurchaseOrder[]
*/
public function getPurchaseOrders() : Collection
{
return $this->purchaseOrders;
}
public function addPurchaseOrder(PurchaseOrder $purchaseOrder) : self
{
if (!$this->purchaseOrders->contains($purchaseOrder)) {
$this->purchaseOrders[] = $purchaseOrder;
$purchaseOrder->setOwner($this);
}
return $this;
}
public function removePurchaseOrder(PurchaseOrder $purchaseOrder) : self
{
if ($this->purchaseOrders->contains($purchaseOrder)) {
$this->purchaseOrders->removeElement($purchaseOrder);
// set the owning side to null (unless already changed)
if ($purchaseOrder->getOwner() === $this) {
$purchaseOrder->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Project[]
*/
public function getProjects() : Collection
{
return $this->projects;
}
public function addProject(Project $project) : self
{
if (!$this->projects->contains($project)) {
$this->projects[] = $project;
$project->setOwner($this);
}
return $this;
}
public function removeProject(Project $project) : self
{
if ($this->projects->contains($project)) {
$this->projects->removeElement($project);
// set the owning side to null (unless already changed)
if ($project->getOwner() === $this) {
$project->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|BudgetLine[]
*/
public function getBudgetLines() : Collection
{
return $this->budgetLines;
}
public function addBudgetLine(BudgetLine $budgetLine) : self
{
if (!$this->budgetLines->contains($budgetLine)) {
$this->budgetLines[] = $budgetLine;
$budgetLine->setOwner($this);
}
return $this;
}
public function removeBudgetLine(BudgetLine $budgetLine) : self
{
if ($this->budgetLines->contains($budgetLine)) {
$this->budgetLines->removeElement($budgetLine);
// set the owning side to null (unless already changed)
if ($budgetLine->getOwner() === $this) {
$budgetLine->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Funding[]
*/
public function getFundings() : Collection
{
return $this->fundings;
}
public function addFunding(Funding $funding) : self
{
if (!$this->fundings->contains($funding)) {
$this->fundings[] = $funding;
$funding->setOwner($this);
}
return $this;
}
public function removeFunding(Funding $funding) : self
{
if ($this->fundings->contains($funding)) {
$this->fundings->removeElement($funding);
// set the owning side to null (unless already changed)
if ($funding->getOwner() === $this) {
$funding->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Payment[]
*/
public function getPayments() : Collection
{
return $this->payments;
}
public function addPayment(Payment $payment) : self
{
if (!$this->payments->contains($payment)) {
$this->payments[] = $payment;
$payment->setOwner($this);
}
return $this;
}
public function removePayment(Payment $payment) : self
{
if ($this->payments->contains($payment)) {
$this->payments->removeElement($payment);
// set the owning side to null (unless already changed)
if ($payment->getOwner() === $this) {
$payment->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getRequisitions() : Collection
{
return $this->requisitions;
}
public function addRequisition(Requisition $requisition) : self
{
if (!$this->requisitions->contains($requisition)) {
$this->requisitions[] = $requisition;
$requisition->setOwner($this);
}
return $this;
}
public function removeRequisition(Requisition $requisition) : self
{
if ($this->requisitions->contains($requisition)) {
$this->requisitions->removeElement($requisition);
// set the owning side to null (unless already changed)
if ($requisition->getOwner() === $this) {
$requisition->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Contract[]
*/
public function getContracts() : Collection
{
return $this->contracts;
}
public function addContract(Contract $contract) : self
{
if (!$this->contracts->contains($contract)) {
$this->contracts[] = $contract;
$contract->setConcernerd($this);
}
return $this;
}
public function removeContract(Contract $contract) : self
{
if ($this->contracts->contains($contract)) {
$this->contracts->removeElement($contract);
// set the owning side to null (unless already changed)
if ($contract->getConcernerd() === $this) {
$contract->setConcernerd(null);
}
}
return $this;
}
/**
* @return Collection|Perfomance[]
*/
public function getPerfomances() : Collection
{
return $this->perfomances;
}
public function addPerfomance(Perfomance $perfomance) : self
{
if (!$this->perfomances->contains($perfomance)) {
$this->perfomances[] = $perfomance;
$perfomance->setConcerned($this);
}
return $this;
}
public function removePerfomance(Perfomance $perfomance) : self
{
if ($this->perfomances->contains($perfomance)) {
$this->perfomances->removeElement($perfomance);
// set the owning side to null (unless already changed)
if ($perfomance->getConcerned() === $this) {
$perfomance->setConcerned(null);
}
}
return $this;
}
/**
* @return Collection|Leave[]
*/
public function getLeaves() : Collection
{
return $this->leaves;
}
public function addLeaf(Leave $leaf) : self
{
if (!$this->leaves->contains($leaf)) {
$this->leaves[] = $leaf;
$leaf->setConcerned($this);
}
return $this;
}
public function removeLeaf(Leave $leaf) : self
{
if ($this->leaves->contains($leaf)) {
$this->leaves->removeElement($leaf);
// set the owning side to null (unless already changed)
if ($leaf->getConcerned() === $this) {
$leaf->setConcerned(null);
}
}
return $this;
}
/**
* @return Collection|Leave[]
*/
public function getAgentProcessedLeaves() : Collection
{
return $this->agentProcessedLeaves;
}
public function addAgentProcessedLeaf(Leave $agentProcessedLeaf) : self
{
if (!$this->agentProcessedLeaves->contains($agentProcessedLeaf)) {
$this->agentProcessedLeaves[] = $agentProcessedLeaf;
$agentProcessedLeaf->setAgentProcessed($this);
}
return $this;
}
public function removeAgentProcessedLeaf(Leave $agentProcessedLeaf) : self
{
if ($this->agentProcessedLeaves->contains($agentProcessedLeaf)) {
$this->agentProcessedLeaves->removeElement($agentProcessedLeaf);
// set the owning side to null (unless already changed)
if ($agentProcessedLeaf->getAgentProcessed() === $this) {
$agentProcessedLeaf->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Perfomance[]
*/
public function getAgentProcessedPerfomances() : Collection
{
return $this->agentProcessedPerfomances;
}
public function addAgentProcessedPerfomance(Perfomance $agentProcessedPerfomance) : self
{
if (!$this->agentProcessedPerfomances->contains($agentProcessedPerfomance)) {
$this->agentProcessedPerfomances[] = $agentProcessedPerfomance;
$agentProcessedPerfomance->setAgentProcessed($this);
}
return $this;
}
public function removeAgentProcessedPerfomance(Perfomance $agentProcessedPerfomance) : self
{
if ($this->agentProcessedPerfomances->contains($agentProcessedPerfomance)) {
$this->agentProcessedPerfomances->removeElement($agentProcessedPerfomance);
// set the owning side to null (unless already changed)
if ($agentProcessedPerfomance->getAgentProcessed() === $this) {
$agentProcessedPerfomance->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Contract[]
*/
public function getAgentProcessedContracts() : Collection
{
return $this->agentProcessedContracts;
}
public function addAgentProcessedContract(Contract $agentProcessedContract) : self
{
if (!$this->agentProcessedContracts->contains($agentProcessedContract)) {
$this->agentProcessedContracts[] = $agentProcessedContract;
$agentProcessedContract->setAgentProcessed($this);
}
return $this;
}
public function removeAgentProcessedContract(Contract $agentProcessedContract) : self
{
if ($this->agentProcessedContracts->contains($agentProcessedContract)) {
$this->agentProcessedContracts->removeElement($agentProcessedContract);
// set the owning side to null (unless already changed)
if ($agentProcessedContract->getAgentProcessed() === $this) {
$agentProcessedContract->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|JobDescription[]
*/
public function getAgentProcessedJobDescription() : Collection
{
return $this->agentProcessedJobDescription;
}
public function addAgentProcessedJobDescription(JobDescription $agentProcessedJobDescription) : self
{
if (!$this->agentProcessedJobDescription->contains($agentProcessedJobDescription)) {
$this->agentProcessedJobDescription[] = $agentProcessedJobDescription;
$agentProcessedJobDescription->setAgentProcessed($this);
}
return $this;
}
public function removeAgentProcessedJobDescription(JobDescription $agentProcessedJobDescription) : self
{
if ($this->agentProcessedJobDescription->contains($agentProcessedJobDescription)) {
$this->agentProcessedJobDescription->removeElement($agentProcessedJobDescription);
// set the owning side to null (unless already changed)
if ($agentProcessedJobDescription->getAgentProcessed() === $this) {
$agentProcessedJobDescription->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Caution[]
*/
public function getCautions() : Collection
{
return $this->cautions;
}
public function addCaution(Caution $caution) : self
{
if (!$this->cautions->contains($caution)) {
$this->cautions[] = $caution;
$caution->setConcerned($this);
}
return $this;
}
public function removeCaution(Caution $caution) : self
{
if ($this->cautions->contains($caution)) {
$this->cautions->removeElement($caution);
// set the owning side to null (unless already changed)
if ($caution->getConcerned() === $this) {
$caution->setConcerned(null);
}
}
return $this;
}
/**
* @return Collection|Caution[]
*/
public function getAgentProcessedCaution() : Collection
{
return $this->agentProcessedCaution;
}
public function addAgentProcessedCaution(Caution $agentProcessedCaution) : self
{
if (!$this->agentProcessedCaution->contains($agentProcessedCaution)) {
$this->agentProcessedCaution[] = $agentProcessedCaution;
$agentProcessedCaution->setAgentProcessed($this);
}
return $this;
}
public function removeAgentProcessedCaution(Caution $agentProcessedCaution) : self
{
if ($this->agentProcessedCaution->contains($agentProcessedCaution)) {
$this->agentProcessedCaution->removeElement($agentProcessedCaution);
// set the owning side to null (unless already changed)
if ($agentProcessedCaution->getAgentProcessed() === $this) {
$agentProcessedCaution->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Presence[]
*/
public function getPresences() : Collection
{
return $this->presences;
}
public function addPresence(Presence $presence) : self
{
if (!$this->presences->contains($presence)) {
$this->presences[] = $presence;
$presence->setAgent($this);
}
return $this;
}
public function removePresence(Presence $presence) : self
{
if ($this->presences->removeElement($presence)) {
// set the owning side to null (unless already changed)
if ($presence->getAgent() === $this) {
$presence->setAgent(null);
}
}
return $this;
}
/**
* @return Collection|Presence[]
*/
public function getAgentPresences() : Collection
{
return $this->agentPresences;
}
public function addAgentPresence(Presence $agentPresence) : self
{
if (!$this->agentPresences->contains($agentPresence)) {
$this->agentPresences[] = $agentPresence;
$agentPresence->setAgentProcess($this);
}
return $this;
}
public function removeAgentPresence(Presence $agentPresence) : self
{
if ($this->agentPresences->removeElement($agentPresence)) {
// set the owning side to null (unless already changed)
if ($agentPresence->getAgentProcess() === $this) {
$agentPresence->setAgentProcess(null);
}
}
return $this;
}
/**
* @return Collection|Receipt[]
*/
public function getReceipts() : Collection
{
return $this->receipts;
}
public function addReceipt(Receipt $receipt) : self
{
if (!$this->receipts->contains($receipt)) {
$this->receipts[] = $receipt;
$receipt->setOwner($this);
}
return $this;
}
public function removeReceipt(Receipt $receipt) : self
{
if ($this->receipts->removeElement($receipt)) {
// set the owning side to null (unless already changed)
if ($receipt->getOwner() === $this) {
$receipt->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Receipt[]
*/
public function getReceiptAgents() : Collection
{
return $this->receiptAgents;
}
public function addReceiptAgent(Receipt $receiptAgent) : self
{
if (!$this->receiptAgents->contains($receiptAgent)) {
$this->receiptAgents[] = $receiptAgent;
$receiptAgent->setAgentProcessed($this);
}
return $this;
}
public function removeReceiptAgent(Receipt $receiptAgent) : self
{
if ($this->receiptAgents->removeElement($receiptAgent)) {
// set the owning side to null (unless already changed)
if ($receiptAgent->getAgentProcessed() === $this) {
$receiptAgent->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Award[]
*/
public function getAwards() : Collection
{
return $this->awards;
}
public function addAward(Award $award) : self
{
if (!$this->awards->contains($award)) {
$this->awards[] = $award;
$award->setPretending($this);
}
return $this;
}
public function removeAward(Award $award) : self
{
if ($this->awards->removeElement($award)) {
// set the owning side to null (unless already changed)
if ($award->getPretending() === $this) {
$award->setPretending(null);
}
}
return $this;
}
/**
* @return Collection|Award[]
*/
public function getOwnerAwards() : Collection
{
return $this->ownerAwards;
}
public function addOwnerAward(Award $ownerAward) : self
{
if (!$this->ownerAwards->contains($ownerAward)) {
$this->ownerAwards[] = $ownerAward;
$ownerAward->setOwner($this);
}
return $this;
}
public function removeOwnerAward(Award $ownerAward) : self
{
if ($this->ownerAwards->removeElement($ownerAward)) {
// set the owning side to null (unless already changed)
if ($ownerAward->getOwner() === $this) {
$ownerAward->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Budget[]
*/
public function getBudgets() : Collection
{
return $this->budgets;
}
public function addBudget(Budget $budget) : self
{
if (!$this->budgets->contains($budget)) {
$this->budgets[] = $budget;
$budget->setAgentProcessed($this);
}
return $this;
}
public function removeBudget(Budget $budget) : self
{
if ($this->budgets->removeElement($budget)) {
// set the owning side to null (unless already changed)
if ($budget->getAgentProcessed() === $this) {
$budget->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getFRequisitions() : Collection
{
return $this->fRequisitions;
}
public function addFRequisition(Requisition $fRequisition) : self
{
if (!$this->fRequisitions->contains($fRequisition)) {
$this->fRequisitions[] = $fRequisition;
$fRequisition->setFinanceDeal($this);
}
return $this;
}
public function removeFRequisition(Requisition $fRequisition) : self
{
if ($this->fRequisitions->removeElement($fRequisition)) {
// set the owning side to null (unless already changed)
if ($fRequisition->getFinanceDeal() === $this) {
$fRequisition->setFinanceDeal(null);
}
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getMRequisitions() : Collection
{
return $this->mRequisitions;
}
public function addMRequisition(Requisition $mRequisition) : self
{
if (!$this->mRequisitions->contains($mRequisition)) {
$this->mRequisitions[] = $mRequisition;
$mRequisition->setManagementDeal($this);
}
return $this;
}
public function removeMRequisition(Requisition $mRequisition) : self
{
if ($this->mRequisitions->removeElement($mRequisition)) {
// set the owning side to null (unless already changed)
if ($mRequisition->getManagementDeal() === $this) {
$mRequisition->setManagementDeal(null);
}
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getDRequisitions() : Collection
{
return $this->dRequisitions;
}
public function addDRequisition(Requisition $dRequisition) : self
{
if (!$this->dRequisitions->contains($dRequisition)) {
$this->dRequisitions[] = $dRequisition;
$dRequisition->setDepartmentDeal($this);
}
return $this;
}
public function removeDRequisition(Requisition $dRequisition) : self
{
if ($this->dRequisitions->removeElement($dRequisition)) {
// set the owning side to null (unless already changed)
if ($dRequisition->getDepartmentDeal() === $this) {
$dRequisition->setDepartmentDeal(null);
}
}
return $this;
}
/**
* @return Collection|Observation[]
*/
public function getObservations() : Collection
{
return $this->observations;
}
public function addObservation(Observation $observation) : self
{
if (!$this->observations->contains($observation)) {
$this->observations[] = $observation;
$observation->setSignedBy($this);
}
return $this;
}
public function removeObservation(Observation $observation) : self
{
if ($this->observations->removeElement($observation)) {
// set the owning side to null (unless already changed)
if ($observation->getSignedBy() === $this) {
$observation->setSignedBy(null);
}
}
return $this;
}
public function getProject() : ?Project
{
return $this->project;
}
public function setProject(?Project $project) : self
{
$this->project = $project;
return $this;
}
/**
* @return Collection|Task[]
*/
public function getTasks() : Collection
{
return $this->tasks;
}
public function addTask(Task $task) : self
{
if (!$this->tasks->contains($task)) {
$this->tasks[] = $task;
$task->setOwner($this);
}
return $this;
}
public function removeTask(Task $task) : self
{
if ($this->tasks->removeElement($task)) {
// set the owning side to null (unless already changed)
if ($task->getOwner() === $this) {
$task->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Task[]
*/
public function getSuggestTasks() : Collection
{
return $this->suggestTasks;
}
public function addSuggestTask(Task $suggestTask) : self
{
if (!$this->suggestTasks->contains($suggestTask)) {
$this->suggestTasks[] = $suggestTask;
$suggestTask->addSuggest($this);
}
return $this;
}
public function removeSuggestTask(Task $suggestTask) : self
{
if ($this->suggestTasks->removeElement($suggestTask)) {
$suggestTask->removeSuggest($this);
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getFMRequisitions() : Collection
{
return $this->fMRequisitions;
}
public function addFMRequisition(Requisition $fMRequisition) : self
{
if (!$this->fMRequisitions->contains($fMRequisition)) {
$this->fMRequisitions[] = $fMRequisition;
$fMRequisition->setFinanceManagerDeal($this);
}
return $this;
}
public function removeFMRequisition(Requisition $fMRequisition) : self
{
if ($this->fMRequisitions->removeElement($fMRequisition)) {
// set the owning side to null (unless already changed)
if ($fMRequisition->getFinanceManagerDeal() === $this) {
$fMRequisition->setFinanceManagerDeal(null);
}
}
return $this;
}
/**
* @return Collection|Payment[]
*/
public function getMPayments() : Collection
{
return $this->mPayments;
}
public function addMPayment(Payment $mPayment) : self
{
if (!$this->mPayments->contains($mPayment)) {
$this->mPayments[] = $mPayment;
$mPayment->setManagementDeal($this);
}
return $this;
}
public function removeMPayment(Payment $mPayment) : self
{
if ($this->mPayments->removeElement($mPayment)) {
// set the owning side to null (unless already changed)
if ($mPayment->getManagementDeal() === $this) {
$mPayment->setManagementDeal(null);
}
}
return $this;
}
/**
* @return Collection|Payment[]
*/
public function getCPayments() : Collection
{
return $this->cPayments;
}
public function addCPayment(Payment $cPayment) : self
{
if (!$this->cPayments->contains($cPayment)) {
$this->cPayments[] = $cPayment;
$cPayment->setCheckoutDeal($this);
}
return $this;
}
public function removeCPayment(Payment $cPayment) : self
{
if ($this->cPayments->removeElement($cPayment)) {
// set the owning side to null (unless already changed)
if ($cPayment->getCheckoutDeal() === $this) {
$cPayment->setCheckoutDeal(null);
}
}
return $this;
}
/**
* @return Collection|Airtime[]
*/
public function getAirtimes() : Collection
{
return $this->airtimes;
}
public function addAirtime(Airtime $airtime) : self
{
if (!$this->airtimes->contains($airtime)) {
$this->airtimes[] = $airtime;
$airtime->setOwner($this);
}
return $this;
}
public function removeAirtime(Airtime $airtime) : self
{
if ($this->airtimes->removeElement($airtime)) {
// set the owning side to null (unless already changed)
if ($airtime->getOwner() === $this) {
$airtime->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Airtime[]
*/
public function getAgtAirtimes() : Collection
{
return $this->agtAirtimes;
}
public function addAgtAirtime(Airtime $agtAirtime) : self
{
if (!$this->agtAirtimes->contains($agtAirtime)) {
$this->agtAirtimes[] = $agtAirtime;
$agtAirtime->setAgentProcessed($this);
}
return $this;
}
public function removeAgtAirtime(Airtime $agtAirtime) : self
{
if ($this->agtAirtimes->removeElement($agtAirtime)) {
// set the owning side to null (unless already changed)
if ($agtAirtime->getAgentProcessed() === $this) {
$agtAirtime->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getRequisitionViews() : Collection
{
return $this->requisitionViews;
}
public function addRequisitionView(Requisition $requisitionView) : self
{
if (!$this->requisitionViews->contains($requisitionView)) {
$this->requisitionViews[] = $requisitionView;
$requisitionView->addViewBy($this);
}
return $this;
}
public function removeRequisitionView(Requisition $requisitionView) : self
{
if ($this->requisitionViews->removeElement($requisitionView)) {
$requisitionView->removeViewBy($this);
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getCkRequisitions() : Collection
{
return $this->ckRequisitions;
}
public function addCkRequisition(Requisition $ckRequisition) : self
{
if (!$this->ckRequisitions->contains($ckRequisition)) {
$this->ckRequisitions[] = $ckRequisition;
$ckRequisition->setCheckoutDeal($this);
}
return $this;
}
public function removeCkRequisition(Requisition $ckRequisition) : self
{
if ($this->ckRequisitions->removeElement($ckRequisition)) {
// set the owning side to null (unless already changed)
if ($ckRequisition->getCheckoutDeal() === $this) {
$ckRequisition->setCheckoutDeal(null);
}
}
return $this;
}
/**
* @return Collection|Requisition[]
*/
public function getCRBRequisitions() : Collection
{
return $this->cRBRequisitions;
}
public function addCRBRequisition(Requisition $cRBRequisition) : self
{
if (!$this->cRBRequisitions->contains($cRBRequisition)) {
$this->cRBRequisitions[] = $cRBRequisition;
$cRBRequisition->setCheckoutReturnBy($this);
}
return $this;
}
public function removeCRBRequisition(Requisition $cRBRequisition) : self
{
if ($this->cRBRequisitions->removeElement($cRBRequisition)) {
// set the owning side to null (unless already changed)
if ($cRBRequisition->getCheckoutReturnBy() === $this) {
$cRBRequisition->setCheckoutReturnBy(null);
}
}
return $this;
}
/**
* @return Collection|AccountProject[]
*/
public function getAccountProjects() : Collection
{
return $this->accountProjects;
}
public function addAccountProject(AccountProject $accountProject) : self
{
if (!$this->accountProjects->contains($accountProject)) {
$this->accountProjects[] = $accountProject;
$accountProject->setAgentProcessed($this);
}
return $this;
}
public function removeAccountProject(AccountProject $accountProject) : self
{
if ($this->accountProjects->removeElement($accountProject)) {
// set the owning side to null (unless already changed)
if ($accountProject->getAgentProcessed() === $this) {
$accountProject->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection|Operation[]
*/
public function getOperations() : Collection
{
return $this->operations;
}
public function addOperation(Operation $operation) : self
{
if (!$this->operations->contains($operation)) {
$this->operations[] = $operation;
$operation->setOwner($this);
}
return $this;
}
public function removeOperation(Operation $operation) : self
{
if ($this->operations->removeElement($operation)) {
// set the owning side to null (unless already changed)
if ($operation->getOwner() === $this) {
$operation->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|Account[]
*/
public function getAccounts() : Collection
{
return $this->accounts;
}
public function addAccount(Account $account) : self
{
if (!$this->accounts->contains($account)) {
$this->accounts[] = $account;
$account->setOwner($this);
}
return $this;
}
public function removeAccount(Account $account) : self
{
if ($this->accounts->removeElement($account)) {
// set the owning side to null (unless already changed)
if ($account->getOwner() === $this) {
$account->setOwner(null);
}
}
return $this;
}
/**
* @return Collection|\App\Entity\Docs\Finance\Payment\Membre\Operation[]
*/
public function getDeposits() : Collection
{
return $this->deposits;
}
public function addDeposit(\App\Entity\Docs\Finance\Payment\Membre\Operation $deposit) : self
{
if (!$this->deposits->contains($deposit)) {
$this->deposits[] = $deposit;
$deposit->setMember($this);
}
return $this;
}
public function removeDeposit(\App\Entity\Docs\Finance\Payment\Membre\Operation $deposit) : self
{
if ($this->deposits->removeElement($deposit)) {
// set the owning side to null (unless already changed)
if ($deposit->getMember() === $this) {
$deposit->setMember(null);
}
}
return $this;
}
public function getCountry() : ?string
{
return $this->country;
}
public function setCountry(?string $country) : self
{
$this->country = $country;
return $this;
}
public function getParent() : ?self
{
return $this->parent;
}
public function setParent(?self $parent) : self
{
$this->parent = $parent;
return $this;
}
public function getKindMember() : ?string
{
return $this->KindMember;
return $this;
}
public function setKindMember(?string $KindMember) : self
{
$this->KindMember = $KindMember;
return $this;
}
/**
* @return Collection|self[]
*/
public function getChildren() : Collection
{
return $this->children;
}
public function addChild(self $child) : self
{
if (!$this->children->contains($child)) {
$this->children[] = $child;
$child->setParent($this);
}
return $this;
}
public function removeChild(self $child) : self
{
if ($this->children->removeElement($child)) {
// set the owning side to null (unless already changed)
if ($child->getParent() === $this) {
$child->setParent(null);
}
}
return $this;
}
public function getGrade() : ?string
{
return $this->grade;
}
public function setGrade(?string $grade) : self
{
$this->grade = $grade;
return $this;
}
/**
*
*/
public function getContributions()
{
/**
* @var \App\Entity\Docs\Finance\Payment\Membre\Operation[]
*/
$opts = $this->getDeposits();
/**
* @var \App\Entity\Docs\Finance\Payment\Operation[]
*/
$contrs = [];
foreach ($opts as $key => $opt) {
array_push($contrs, $opt->getPaymentOperation());
}
return $contrs;
}
/**
* @return float
*/
public function getNormalSoldCDF()
{
$sum = 0;
$contrs = $this->getContributions();
foreach ($contrs as $key => $contr) {
$sum += $contr->getCashoutCdf() ?? 0.0;
}
return $sum;
}
/**
* @return float
*/
public function getNormalSoldUSD()
{
$sum = 0;
$contrs = $this->getContributions();
foreach ($contrs as $key => $contr) {
$sum += $contr->getCashoutUsd() ?? 0.0;
}
return $sum;
}
/**
* @return float
*/
public function getOwnerSoldCDF()
{
$sum = 0;
/**
* @var \App\Entity\Docs\Finance\Payment\Membre\Operation[]
*/
$contrs = $this->getDeposits();
foreach ($contrs as $key => $contr) {
$sum += $contr->getDisbursementCdf() ?? 0.0;
}
return $sum;
}
/**
* @return float
*/
public function getOwnerSoldUSD()
{
$sum = 0;
/**
* @var \App\Entity\Docs\Finance\Payment\Membre\Operation[]
*/
$contrs = $this->getDeposits();
foreach ($contrs as $key => $contr) {
$sum += $contr->getDisbursementUsd() ?? 0.0;
//dump()
}
//dd();
return $sum;
}
/**
* @return float
*/
public function getParentSoldCDF()
{
$sum = $this->getNormalSoldCDF() - $this->getOwnerSoldCDF();
return $sum;
}
/**
* @return float
*/
public function getParentSoldUSD()
{
$sum = $this->getNormalSoldUSD() - $this->getOwnerSoldUSD();
// dd($this->getDeposits());
return $sum;
}
/**
* @return Collection|\App\Entity\Docs\Finance\Payment\Membre\Operation[]
public function getMemberOperations(): Collection
{
return $this->memberOperations;
}
public function addMemberOperation(\App\Entity\Docs\Finance\Payment\Membre\Operation $memberOperation): self
{
if (!$this->memberOperations->contains($memberOperation)) {
$this->memberOperations[] = $memberOperation;
$memberOperation->setMember($this);
}
return $this;
}*/
/**
* @return Collection|AccountVerification[]
*/
public function getAccountVerifications() : Collection
{
return $this->accountVerifications;
}
public function addAccountVerification(AccountVerification $accountVerification) : self
{
if (!$this->accountVerifications->contains($accountVerification)) {
$this->accountVerifications[] = $accountVerification;
$accountVerification->setConfirmedBy($this);
}
return $this;
}
public function removeMemberOperation(\App\Entity\Docs\Finance\Payment\Membre\Operation $memberOperation) : self
{
if ($this->memberOperations->removeElement($memberOperation)) {
// set the owning side to null (unless already changed)
if ($memberOperation->getMember() === $this) {
$memberOperation->setMember(null);
}
}
return $this;
}
public function removeAccountVerification(AccountVerification $accountVerification) : self
{
if ($this->accountVerifications->removeElement($accountVerification)) {
// set the owning side to null (unless already changed)
if ($accountVerification->getConfirmedBy() === $this) {
$accountVerification->setConfirmedBy(null);
}
}
return $this;
}
/**
* @return Collection|Transfer[]
*/
public function getTransfers() : Collection
{
return $this->transfers;
}
public function addTransfer(Transfer $transfer) : self
{
if (!$this->transfers->contains($transfer)) {
$this->transfers[] = $transfer;
$transfer->setAgentProcessed($this);
}
return $this;
}
public function removeTransfer(Transfer $transfer) : self
{
if ($this->transfers->removeElement($transfer)) {
// set the owning side to null (unless already changed)
if ($transfer->getAgentProcessed() === $this) {
$transfer->setAgentProcessed(null);
}
}
return $this;
}
public function getIsAdminFinance() : ?bool
{
return $this->isAdminFinance;
}
public function setIsAdminFinance(?bool $isAdminFinance) : self
{
$this->isAdminFinance = $isAdminFinance;
return $this;
}
/**
* @return Collection<int, \App\Entity\Docs\Finance\V2\Budget\BudgetLine>
*/
public function getBudgetLinesV2(): Collection
{
return $this->budgetLinesV2;
}
public function addBudgetLinesV2(\App\Entity\Docs\Finance\V2\Budget\BudgetLine $budgetLinesV2): self
{
if (!$this->budgetLinesV2->contains($budgetLinesV2)) {
$this->budgetLinesV2[] = $budgetLinesV2;
$budgetLinesV2->setManager($this);
}
return $this;
}
public function removeBudgetLinesV2(\App\Entity\Docs\Finance\V2\Budget\BudgetLine $budgetLinesV2): self
{
if ($this->budgetLinesV2->removeElement($budgetLinesV2)) {
// set the owning side to null (unless already changed)
if ($budgetLinesV2->getManager() === $this) {
$budgetLinesV2->setManager(null);
}
}
return $this;
}
/**
* @return Collection<int, BudgetSection>
*/
public function getBudgetSections(): Collection
{
return $this->budgetSections;
}
public function addBudgetSection(BudgetSection $budgetSection): self
{
if (!$this->budgetSections->contains($budgetSection)) {
$this->budgetSections[] = $budgetSection;
$budgetSection->setManager($this);
}
return $this;
}
public function removeBudgetSection(BudgetSection $budgetSection): self
{
if ($this->budgetSections->removeElement($budgetSection)) {
// set the owning side to null (unless already changed)
if ($budgetSection->getManager() === $this) {
$budgetSection->setManager(null);
}
}
return $this;
}
public function getAuthCode(): ?string
{
return $this->authCode;
}
public function setAuthCode(?string $authCode): self
{
$this->authCode = $authCode;
return $this;
}
public function getAuthIAt(): ?int
{
return $this->authIAt;
}
public function setAuthIAt(int $authIAt): self
{
$this->authIAt = $authIAt;
return $this;
}
/**
* @return Collection<int, \App\Entity\Docs\Finance\V2\Budget\Budget>
*/
public function getBudgetProcessor(): Collection
{
return $this->budgetProcessor;
}
public function addBudgetProcessor(\App\Entity\Docs\Finance\V2\Budget\Budget $budgetProcessor): self
{
if (!$this->budgetProcessor->contains($budgetProcessor)) {
$this->budgetProcessor[] = $budgetProcessor;
$budgetProcessor->setAgentProcessor($this);
}
return $this;
}
public function removeBudgetProcessor(\App\Entity\Docs\Finance\V2\Budget\Budget $budgetProcessor): self
{
if ($this->budgetProcessor->removeElement($budgetProcessor)) {
// set the owning side to null (unless already changed)
if ($budgetProcessor->getAgentProcessor() === $this) {
$budgetProcessor->setAgentProcessor(null);
}
}
return $this;
}
/**
* @return Collection<int, BudgetSection>
*/
public function getBudgetSectionsCreated(): Collection
{
return $this->budgetSectionsCreated;
}
public function addBudgetSectionsCreated(BudgetSection $budgetSectionsCreated): self
{
if (!$this->budgetSectionsCreated->contains($budgetSectionsCreated)) {
$this->budgetSectionsCreated[] = $budgetSectionsCreated;
$budgetSectionsCreated->setAgentProccessor($this);
}
return $this;
}
public function removeBudgetSectionsCreated(BudgetSection $budgetSectionsCreated): self
{
if ($this->budgetSectionsCreated->removeElement($budgetSectionsCreated)) {
// set the owning side to null (unless already changed)
if ($budgetSectionsCreated->getAgentProccessor() === $this) {
$budgetSectionsCreated->setAgentProccessor(null);
}
}
return $this;
}
/**
* @return Collection<int, \App\Entity\Docs\Finance\V2\Budget\BudgetLine>
*/
public function getBudgetLinesCreated(): Collection
{
return $this->budgetLinesCreated;
}
public function addBudgetLinesCreated(\App\Entity\Docs\Finance\V2\Budget\BudgetLine $budgetLinesCreated): self
{
if (!$this->budgetLinesCreated->contains($budgetLinesCreated)) {
$this->budgetLinesCreated[] = $budgetLinesCreated;
$budgetLinesCreated->setAgentProcessing($this);
}
return $this;
}
public function removeBudgetLinesCreated(\App\Entity\Docs\Finance\V2\Budget\BudgetLine $budgetLinesCreated): self
{
if ($this->budgetLinesCreated->removeElement($budgetLinesCreated)) {
// set the owning side to null (unless already changed)
if ($budgetLinesCreated->getAgentProcessing() === $this) {
$budgetLinesCreated->setAgentProcessing(null);
}
}
return $this;
}
/**
* @return Collection<int, OADAAccount>
*/
public function getOADAAccounts(): Collection
{
return $this->oADAAccounts;
}
public function addOADAAccount(OADAAccount $oADAAccount): self
{
if (!$this->oADAAccounts->contains($oADAAccount)) {
$this->oADAAccounts[] = $oADAAccount;
$oADAAccount->setAgentProcessor($this);
}
return $this;
}
/*
* @return Collection<int, MaterialAsset>
*/
public function getMaterialAssets(): Collection
{
return $this->materialAssets;
}
public function addMaterialAsset(MaterialAsset $materialAsset): self
{
if (!$this->materialAssets->contains($materialAsset)) {
$this->materialAssets[] = $materialAsset;
$materialAsset->setAgentProcessor($this);
}
return $this;
}
public function removeOADAAccount(OADAAccount $oADAAccount): self
{
if ($this->oADAAccounts->removeElement($oADAAccount)) {
// set the owning side to null (unless already changed)
if ($oADAAccount->getAgentProcessor() === $this) {
$oADAAccount->setAgentProcessor(null);
}
}
return $this;
}
public function removeMaterialAsset(MaterialAsset $materialAsset): self
{
if ($this->materialAssets->removeElement($materialAsset)) {
// set the owning side to null (unless already changed)
if ($materialAsset->getAgentProcessor() === $this) {
$materialAsset->setAgentProcessor(null);
}
}
return $this;
}
/**
* @return Collection<int, FiscalYear>
*/
public function getFiscalYears(): Collection
{
return $this->fiscalYears;
}
public function addFiscalYear(FiscalYear $fiscalYear): self
{
if (!$this->fiscalYears->contains($fiscalYear)) {
$this->fiscalYears[] = $fiscalYear;
$fiscalYear->setAgentProcessor($this);
}
return $this;
}
/**
* @return Collection<int, UseOfAsset>
*/
public function getUseOfAssets(): Collection
{
return $this->useOfAssets;
}
public function addUseOfAsset(UseOfAsset $useOfAsset): self
{
if (!$this->useOfAssets->contains($useOfAsset)) {
$this->useOfAssets[] = $useOfAsset;
$useOfAsset->setUser($this);
}
return $this;
}
public function removeFiscalYear(FiscalYear $fiscalYear): self
{
if ($this->fiscalYears->removeElement($fiscalYear)) {
// set the owning side to null (unless already changed)
if ($fiscalYear->getAgentProcessor() === $this) {
$fiscalYear->setAgentProcessor(null);
}
}
return $this;
}
public function removeUseOfAsset(UseOfAsset $useOfAsset): self
{
if ($this->useOfAssets->removeElement($useOfAsset)) {
// set the owning side to null (unless already changed)
if ($useOfAsset->getUser() === $this) {
$useOfAsset->setUser(null);
}
}
return $this;
}
/**
* @return Collection<int, Transaction>
*/
public function getTransactionsCheckout(): Collection
{
return $this->transactionsCheckout;
}
public function addTransactionsCheckout(Transaction $transactionsCheckout): self
{
if (!$this->transactionsCheckout->contains($transactionsCheckout)) {
$this->transactionsCheckout[] = $transactionsCheckout;
$transactionsCheckout->setAgentProcessor($this);
}
return $this;
}
/**
* @return Collection<int, TypeMaterialAsset>
*/
public function getTypeMaterialAssets(): Collection
{
return $this->typeMaterialAssets;
}
public function addTypeMaterialAsset(TypeMaterialAsset $typeMaterialAsset): self
{
if (!$this->typeMaterialAssets->contains($typeMaterialAsset)) {
$this->typeMaterialAssets[] = $typeMaterialAsset;
$typeMaterialAsset->setAgentProcessor($this);
}
return $this;
}
public function removeTransactionsCheckout(Transaction $transactionsCheckout): self
{
if ($this->transactionsCheckout->removeElement($transactionsCheckout)) {
// set the owning side to null (unless already changed)
if ($transactionsCheckout->getAgentProcessor() === $this) {
$transactionsCheckout->setAgentProcessor(null);
}
}
return $this;
}
public function removeTypeMaterialAsset(TypeMaterialAsset $typeMaterialAsset): self
{
if ($this->typeMaterialAssets->removeElement($typeMaterialAsset)) {
// set the owning side to null (unless already changed)
if ($typeMaterialAsset->getAgentProcessor() === $this) {
$typeMaterialAsset->setAgentProcessor(null);
}
}
return $this;
}
/**
* @return Collection<int, CompanyAccount>
*/
public function getCompanyAccountsInitialize(): Collection
{
return $this->companyAccountsInitialize;
}
public function addCompanyAccountsInitialize(CompanyAccount $companyAccountsInitialize): self
{
if (!$this->companyAccountsInitialize->contains($companyAccountsInitialize)) {
$this->companyAccountsInitialize[] = $companyAccountsInitialize;
$companyAccountsInitialize->setAgentProcessor($this);
}
return $this;
}
/**
* @return Collection<int, UseOfAsset>
*/
public function getUseOfAssetsClosed(): Collection
{
return $this->useOfAssetsClosed;
}
public function addUseOfAssetsClosed(UseOfAsset $useOfAssetsClosed): self
{
if (!$this->useOfAssetsClosed->contains($useOfAssetsClosed)) {
$this->useOfAssetsClosed[] = $useOfAssetsClosed;
$useOfAssetsClosed->setAgentClose($this);
}
return $this;
}
public function removeCompanyAccountsInitialize(CompanyAccount $companyAccountsInitialize): self
{
if ($this->companyAccountsInitialize->removeElement($companyAccountsInitialize)) {
// set the owning side to null (unless already changed)
if ($companyAccountsInitialize->getAgentProcessor() === $this) {
$companyAccountsInitialize->setAgentProcessor(null);
}
return $this;
}
}
public function removeUseOfAssetsClosed(UseOfAsset $useOfAssetsClosed): self
{
if ($this->useOfAssetsClosed->removeElement($useOfAssetsClosed)) {
// set the owning side to null (unless already changed)
if ($useOfAssetsClosed->getAgentClose() === $this) {
$useOfAssetsClosed->setAgentClose(null);
}
}
return $this;
}
/**
* @return Collection<int, Transaction>
*/
public function getTransactionsValidate(): Collection
{
return $this->transactionsValidate;
}
public function addTransactionsValidate(Transaction $transactionsValidate): self
{
if (!$this->transactionsValidate->contains($transactionsValidate)) {
$this->transactionsValidate[] = $transactionsValidate;
$transactionsValidate->setAgentValidator($this);
}
return $this;
}
/**
* @return Collection<int, UseOfAsset>
*/
public function getUseOfAssetsValidateReceipt(): Collection
{
return $this->useOfAssetsValidateReceipt;
}
public function addUseOfAssetsValidateReceipt(UseOfAsset $useOfAssetsValidateReceipt): self
{
if (!$this->useOfAssetsValidateReceipt->contains($useOfAssetsValidateReceipt)) {
$this->useOfAssetsValidateReceipt[] = $useOfAssetsValidateReceipt;
$useOfAssetsValidateReceipt->setReceiptValidationUser($this);
}
return $this;
}
public function removeTransactionsValidate(Transaction $transactionsValidate): self
{
if ($this->transactionsValidate->removeElement($transactionsValidate)) {
// set the owning side to null (unless already changed)
if ($transactionsValidate->getAgentValidator() === $this) {
$transactionsValidate->setAgentValidator(null);
}
}
return $this;
}
public function removeUseOfAssetsValidateReceipt(UseOfAsset $useOfAssetsValidateReceipt): self
{
if ($this->useOfAssetsValidateReceipt->removeElement($useOfAssetsValidateReceipt)) {
// set the owning side to null (unless already changed)
if ($useOfAssetsValidateReceipt->getReceiptValidationUser() === $this) {
$useOfAssetsValidateReceipt->setReceiptValidationUser(null);
}
}
return $this;
}
/**
* @return Collection<int, UseOfAsset>
*/
public function getUseOfAssetDiscountValidate(): Collection
{
return $this->useOfAssetDiscountValidate;
}
public function addUseOfAssetDiscountValidate(UseOfAsset $useOfAssetDiscountValidate): self
{
if (!$this->useOfAssetDiscountValidate->contains($useOfAssetDiscountValidate)) {
$this->useOfAssetDiscountValidate[] = $useOfAssetDiscountValidate;
$useOfAssetDiscountValidate->setDiscountValidationUser($this);
}
return $this;
}
public function removeUseOfAssetDiscountValidate(UseOfAsset $useOfAssetDiscountValidate): self
{
if ($this->useOfAssetDiscountValidate->removeElement($useOfAssetDiscountValidate)) {
// set the owning side to null (unless already changed)
if ($useOfAssetDiscountValidate->getDiscountValidationUser() === $this) {
$useOfAssetDiscountValidate->setDiscountValidationUser(null);
}
}
return $this;
}
/**
* @return Collection<int, \App\Entity\Accounting\OADA\AccountJournal>
*/
public function getAccountJournalsCashier(): Collection
{
return $this->accountJournalsCashier;
}
public function addAccountJournalsCashier(\App\Entity\Accounting\OADA\AccountJournal $accountJournalsCashier): self
{
if (!$this->accountJournalsCashier->contains($accountJournalsCashier)) {
$this->accountJournalsCashier[] = $accountJournalsCashier;
$accountJournalsCashier->setCashier($this);
}
return $this;
}
public function removeAccountJournalsCashier(\App\Entity\Accounting\OADA\AccountJournal $accountJournalsCashier): self
{
if ($this->accountJournalsCashier->removeElement($accountJournalsCashier)) {
// set the owning side to null (unless already changed)
if ($accountJournalsCashier->getCashier() === $this) {
$accountJournalsCashier->setCashier(null);
}
}
return $this;
}
/**
* @return Collection<int, Draft>
*/
public function getDrafts(): Collection
{
return $this->drafts;
}
public function addDraft(Draft $draft): self
{
if (!$this->drafts->contains($draft)) {
$this->drafts[] = $draft;
$draft->setUser($this);
}
return $this;
}
public function removeDraft(Draft $draft): self
{
if ($this->drafts->removeElement($draft)) {
// set the owning side to null (unless already changed)
if ($draft->getUser() === $this) {
$draft->setUser(null);
}
}
return $this;
}
/**
* @return Collection<int, \App\Entity\Accounting\OADA\AccountJournal>
*/
public function getAccountJournalsAccountant(): Collection
{
return $this->accountJournalsAccountant;
}
public function addAccountJournalsAccountant(\App\Entity\Accounting\OADA\AccountJournal $accountJournalsAccountant): self
{
if (!$this->accountJournalsAccountant->contains($accountJournalsAccountant)) {
$this->accountJournalsAccountant[] = $accountJournalsAccountant;
$accountJournalsAccountant->setAccountant($this);
}
return $this;
}
public function removeAccountJournalsAccountant(\App\Entity\Accounting\OADA\AccountJournal $accountJournalsAccountant): self
{
if ($this->accountJournalsAccountant->removeElement($accountJournalsAccountant)) {
// set the owning side to null (unless already changed)
if ($accountJournalsAccountant->getAccountant() === $this) {
$accountJournalsAccountant->setAccountant(null);
}
}
return $this;
}
/**
* @return Collection<int, ParamsApp>
*/
public function getParamsApps(): Collection
{
return $this->paramsApps;
}
public function addParamsApp(ParamsApp $paramsApp): self
{
if (!$this->paramsApps->contains($paramsApp)) {
$this->paramsApps[] = $paramsApp;
$paramsApp->setUserProcessor($this);
}
return $this;
}
public function removeParamsApp(ParamsApp $paramsApp): self
{
if ($this->paramsApps->removeElement($paramsApp)) {
// set the owning side to null (unless already changed)
if ($paramsApp->getUserProcessor() === $this) {
$paramsApp->setUserProcessor(null);
}
}
return $this;
}
/**
* @return Collection<int, ChangeRate>
*/
public function getChangeRates(): Collection
{
return $this->changeRates;
}
public function addChangeRate(ChangeRate $changeRate): self
{
if (!$this->changeRates->contains($changeRate)) {
$this->changeRates[] = $changeRate;
$changeRate->setUserProcessor($this);
}
return $this;
}
public function removeChangeRate(ChangeRate $changeRate): self
{
if ($this->changeRates->removeElement($changeRate)) {
// set the owning side to null (unless already changed)
if ($changeRate->getUserProcessor() === $this) {
$changeRate->setUserProcessor(null);
}
}
return $this;
}
/**
* @return Collection<int, Justification>
*/
public function getJustifications(): Collection
{
return $this->justifications;
}
public function addJustification(Justification $justification): self
{
if (!$this->justifications->contains($justification)) {
$this->justifications[] = $justification;
$justification->setAgentProcessed($this);
}
return $this;
}
public function removeJustification(Justification $justification): self
{
if ($this->justifications->removeElement($justification)) {
// set the owning side to null (unless already changed)
if ($justification->getAgentProcessed() === $this) {
$justification->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection<int, CashReturn>
*/
public function getCashReturns(): Collection
{
return $this->cashReturns;
}
public function addCashReturn(CashReturn $cashReturn): self
{
if (!$this->cashReturns->contains($cashReturn)) {
$this->cashReturns[] = $cashReturn;
$cashReturn->setAgentProcessed($this);
}
return $this;
}
public function removeCashReturn(CashReturn $cashReturn): self
{
if ($this->cashReturns->removeElement($cashReturn)) {
// set the owning side to null (unless already changed)
if ($cashReturn->getAgentProcessed() === $this) {
$cashReturn->setAgentProcessed(null);
}
}
return $this;
}
/**
* @return Collection<int, Transaction>
*/
public function getTransactionDirValidate(): Collection
{
return $this->transactionDirValidate;
}
public function addTransactionDirValidate(Transaction $transactionDirValidate): self
{
if (!$this->transactionDirValidate->contains($transactionDirValidate)) {
$this->transactionDirValidate[] = $transactionDirValidate;
$transactionDirValidate->setDirValidator($this);
}
return $this;
}
public function removeTransactionDirValidate(Transaction $transactionDirValidate): self
{
if ($this->transactionDirValidate->removeElement($transactionDirValidate)) {
// set the owning side to null (unless already changed)
if ($transactionDirValidate->getDirValidator() === $this) {
$transactionDirValidate->setDirValidator(null);
}
}
return $this;
}
/**
* @return Collection<int, Justification>
*/
public function getJustificationsValidate(): Collection
{
return $this->justificationsValidate;
}
public function addJustificationsValidate(Justification $justificationsValidate): self
{
if (!$this->justificationsValidate->contains($justificationsValidate)) {
$this->justificationsValidate[] = $justificationsValidate;
$justificationsValidate->setValidateAgent($this);
}
return $this;
}
public function removeJustificationsValidate(Justification $justificationsValidate): self
{
if ($this->justificationsValidate->removeElement($justificationsValidate)) {
// set the owning side to null (unless already changed)
if ($justificationsValidate->getValidateAgent() === $this) {
$justificationsValidate->setValidateAgent(null);
}
}
return $this;
}
/**
* @return Collection<int, CashReturn>
*/
public function getCashReturnsSign(): Collection
{
return $this->cashReturnsSign;
}
public function addCashReturnsSign(CashReturn $cashReturnsSign): self
{
if (!$this->cashReturnsSign->contains($cashReturnsSign)) {
$this->cashReturnsSign[] = $cashReturnsSign;
$cashReturnsSign->setAgentSign($this);
}
return $this;
}
public function removeCashReturnsSign(CashReturn $cashReturnsSign): self
{
if ($this->cashReturnsSign->removeElement($cashReturnsSign)) {
// set the owning side to null (unless already changed)
if ($cashReturnsSign->getAgentSign() === $this) {
$cashReturnsSign->setAgentSign(null);
}
}
return $this;
}
/**
* @return Collection<int, OperationAccount>
*/
public function getOptAccountsDeleted(): Collection
{
return $this->optAccountsDeleted;
}
public function addOptAccountsDeleted(OperationAccount $optAccountsDeleted): self
{
if (!$this->optAccountsDeleted->contains($optAccountsDeleted)) {
$this->optAccountsDeleted[] = $optAccountsDeleted;
$optAccountsDeleted->setDeletedBy($this);
}
return $this;
}
public function removeOptAccountsDeleted(OperationAccount $optAccountsDeleted): self
{
if ($this->optAccountsDeleted->removeElement($optAccountsDeleted)) {
// set the owning side to null (unless already changed)
if ($optAccountsDeleted->getDeletedBy() === $this) {
$optAccountsDeleted->setDeletedBy(null);
}
}
return $this;
}
/**
* @return Collection<int, Requisition>
*/
public function getOptSignReqs(): Collection
{
return $this->optSignReqs;
}
public function addOptSignReq(Requisition $optSignReq): self
{
if (!$this->optSignReqs->contains($optSignReq)) {
$this->optSignReqs[] = $optSignReq;
$optSignReq->setOptDeal($this);
}
return $this;
}
public function removeOptSignReq(Requisition $optSignReq): self
{
if ($this->optSignReqs->removeElement($optSignReq)) {
// set the owning side to null (unless already changed)
if ($optSignReq->getOptDeal() === $this) {
$optSignReq->setOptDeal(null);
}
}
return $this;
}
}