File tree Expand file tree Collapse file tree 8 files changed +0
-52
lines changed Expand file tree Collapse file tree 8 files changed +0
-52
lines changed Original file line number Diff line number Diff line change 44
55namespace Netgen \Bundle \IbexaScheduledVisibilityBundle \DependencyInjection ;
66
7- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
87use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
98use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
109use Symfony \Component \Config \Definition \ConfigurationInterface ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77use Ibexa \Contracts \Core \Repository \ContentService ;
88use Ibexa \Contracts \Core \Repository \Repository ;
99use Ibexa \Contracts \Core \Repository \Values \Content \Content as ContentValue ;
10- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
1110use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
1211
1312final class Content implements ScheduledVisibilityInterface
@@ -40,9 +39,4 @@ public function isVisible(ContentValue $content): bool
4039 {
4140 return !$ content ->contentInfo ->isHidden ();
4241 }
43-
44- public function getType (): HandlerType
45- {
46- return HandlerType::Content;
47- }
4842}
Original file line number Diff line number Diff line change 88use Ibexa \Contracts \Core \Repository \LocationService ;
99use Ibexa \Contracts \Core \Repository \Repository ;
1010use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
11- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
1211use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
1312
1413final class ContentAndLocation implements ScheduledVisibilityInterface
@@ -73,9 +72,4 @@ public function isVisible(Content $content): bool
7372
7473 return true ;
7574 }
76-
77- public function getType (): HandlerType
78- {
79- return HandlerType::ContentAndLocation;
80- }
8175}
Original file line number Diff line number Diff line change 77use Ibexa \Contracts \Core \Repository \LocationService ;
88use Ibexa \Contracts \Core \Repository \Repository ;
99use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
10- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
1110use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
1211
1312final class Location implements ScheduledVisibilityInterface
@@ -60,9 +59,4 @@ public function isVisible(Content $content): bool
6059
6160 return true ;
6261 }
63-
64- public function getType (): HandlerType
65- {
66- return HandlerType::Location;
67- }
6862}
Original file line number Diff line number Diff line change 1010use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
1111use Ibexa \Contracts \Core \Repository \Values \ObjectState \ObjectState as ObjectStateValue ;
1212use Ibexa \Contracts \Core \Repository \Values \ObjectState \ObjectStateGroup ;
13- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
1413use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
1514
1615final class ObjectState implements ScheduledVisibilityInterface
@@ -43,11 +42,6 @@ public function reveal(Content $content): void
4342 $ this ->setObjectState ($ content , $ visibleObjectStateId );
4443 }
4544
46- public function getType (): HandlerType
47- {
48- return HandlerType::ObjectState;
49- }
50-
5145 /**
5246 * @throws NotFoundException
5347 */
Original file line number Diff line number Diff line change 88use Ibexa \Contracts \Core \Repository \Repository ;
99use Ibexa \Contracts \Core \Repository \SectionService ;
1010use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
11- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
1211use Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility \ScheduledVisibilityInterface ;
1312
1413final class Section implements ScheduledVisibilityInterface
@@ -34,11 +33,6 @@ public function reveal(Content $content): void
3433 $ this ->assignSection ($ content , $ visibleSectionId );
3534 }
3635
37- public function getType (): HandlerType
38- {
39- return HandlerType::Section;
40- }
41-
4236 public function isHidden (Content $ content ): bool
4337 {
4438 return $ content ->getContentInfo ()->getSectionId () === $ this ->hiddenSectionId ;
Original file line number Diff line number Diff line change 55namespace Netgen \Bundle \IbexaScheduledVisibilityBundle \ScheduledVisibility ;
66
77use Ibexa \Contracts \Core \Repository \Values \Content \Content ;
8- use Netgen \Bundle \IbexaScheduledVisibilityBundle \Enums \HandlerType ;
98
109interface ScheduledVisibilityInterface
1110{
@@ -16,6 +15,4 @@ public function reveal(Content $content): void;
1615 public function isHidden (Content $ content ): bool ;
1716
1817 public function isVisible (Content $ content ): bool ;
19-
20- public function getType (): HandlerType ;
2118}
You can’t perform that action at this time.
0 commit comments