Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
grifart libs
tables
Commits
9f81bcd6
Commit
9f81bcd6
authored
3 years ago
by
Daniel Kurowski
Browse files
Options
Downloads
Patches
Plain Diff
get*Class() -> addCapabailityTo*Class() [BC break]
parent
41957682
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!16
Fix scaffolding
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Scaffolding/Definitions.php
+10
-6
10 additions, 6 deletions
src/Scaffolding/Definitions.php
with
10 additions
and
6 deletions
src/Scaffolding/Definitions.php
+
10
−
6
View file @
9f81bcd6
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
Grifart\Tables\Scaffolding
;
namespace
Grifart\Tables\Scaffolding
;
use
Grifart\ClassScaffolder\Capabilities\Capability
;
use
Grifart\ClassScaffolder\Definition\ClassDefinition
;
use
Grifart\ClassScaffolder\Definition\ClassDefinition
;
...
@@ -29,19 +30,22 @@ final class Definitions implements \IteratorAggregate
...
@@ -29,19 +30,22 @@ final class Definitions implements \IteratorAggregate
);
);
}
}
public
function
getRowClass
():
ClassDefinition
public
function
addCapabilityToRowClass
(
Capability
$capability
):
self
{
{
return
$this
->
rowClass
;
$this
->
rowClass
=
$this
->
rowClass
->
with
(
$capability
);
return
$this
;
}
}
public
function
get
ModificationsClass
(
):
ClassDefinition
public
function
addCapability
ModificationsClass
(
Capability
$capability
):
self
{
{
return
$this
->
modificationsClass
;
$this
->
modificationsClass
=
$this
->
modificationsClass
->
with
(
$capability
);
return
$this
;
}
}
public
function
getTableClass
():
ClassDefinition
public
function
addCapabilityTableClass
(
Capability
$capability
):
self
{
{
return
$this
->
tableClass
;
$this
->
tableClass
=
$this
->
tableClass
->
with
(
$capability
);
return
$this
;
}
}
...
...
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