Lines Matching refs:groups
19 private $groups = []; variable in JMS\\Serializer\\Exclusion\\GroupsExclusionStrategy
26 public function __construct(array $groups) argument
28 if (empty($groups)) {
29 $groups = [self::DEFAULT_GROUP];
32 foreach ($groups as $group) {
40 $this->groups = $groups;
42 foreach ($groups as $group) {
43 $this->groups[$group] = true;
62 $groups = $this->getGroupsFor($navigatorContext);
64 if (!$property->groups) {
65 return !in_array(self::DEFAULT_GROUP, $groups);
68 return $this->shouldSkipUsingGroups($property, $groups);
70 if (!$property->groups) {
71 return !isset($this->groups[self::DEFAULT_GROUP]);
74 foreach ($property->groups as $group) {
75 if (isset($this->groups[$group])) {
83 private function shouldSkipUsingGroups(PropertyMetadata $property, array $groups): bool argument
85 foreach ($property->groups as $group) {
86 if (in_array($group, $groups)) {
98 $groups = $this->groups;
100 if (!array_key_exists($path, $groups)) {
104 if (!is_array($groups[$path])) {
105 …alue for the property path "%s" should be an array, "%s" given', $index, gettype($groups[$path])));
108 $groups = $groups[$path];
111 return $groups;