Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
synchro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
synchro
Commits
6165bfaf
Commit
6165bfaf
authored
1 year ago
by
Jean-Philippe Metivier
Browse files
Options
Downloads
Patches
Plain Diff
Ajustemant du trait
parent
6ce53e61
No related branches found
No related tags found
No related merge requests found
Pipeline
#22879
passed
1 year ago
Stage: publish
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/UnicaenSynchro/Entity/Db/IsSynchronisableInterface.php
+12
-5
12 additions, 5 deletions
src/UnicaenSynchro/Entity/Db/IsSynchronisableInterface.php
src/UnicaenSynchro/Entity/Db/IsSynchronisableTrait.php
+26
-0
26 additions, 0 deletions
src/UnicaenSynchro/Entity/Db/IsSynchronisableTrait.php
with
38 additions
and
5 deletions
src/UnicaenSynchro/Entity/Db/IsSynchronisableInterface.php
+
12
−
5
View file @
6165bfaf
...
...
@@ -4,11 +4,18 @@ namespace UnicaenSynchro\Entity\Db;
use
DateTime
;
interface
IsSynchronisableInterface
{
interface
IsSynchronisableInterface
{
public
function
getInsertedOn
():
?DateTime
;
public
function
getCreatedOn
()
:
?DateTime
;
public
function
getUpdatedOn
():
?DateTime
;
public
function
getDeletedOn
():
?DateTime
;
public
function
isDeleted
(
?DateTime
$date
=
null
):
bool
;
public
function
getSourceId
():
?string
;
public
function
getIdOrig
():
?string
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/UnicaenSynchro/Entity/Db/IsSynchronisableTrait.php
+
26
−
0
View file @
6165bfaf
...
...
@@ -10,6 +10,9 @@ trait IsSynchronisableTrait {
private
?Datetime
$updatedOn
;
private
?Datetime
$deletedOn
;
private
?string
$sourceId
;
private
?string
$idOrig
;
public
function
getInsertedOn
():
?DateTime
{
return
$this
->
createdOn
;
...
...
@@ -47,4 +50,27 @@ trait IsSynchronisableTrait {
return
true
;
}
/**
* @return string|null
*/
public
function
getSourceId
():
?string
{
return
$this
->
sourceId
;
}
public
function
setSourceId
(
?string
$sourceId
):
void
{
$this
->
sourceId
=
$sourceId
;
}
public
function
getIdOrig
():
?string
{
return
$this
->
idOrig
;
}
public
function
setIdOrig
(
?string
$idOrig
):
void
{
$this
->
idOrig
=
$idOrig
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment