/** * @param $property * @param array $value * * @return $this */ public function withProperty($property, $value) { if ($value) { $this->properties[$property] = GetterFactory::create($value); } return $this; }
public function createFrom($properties) { foreach ($properties['children'] as $getter_configuration) { $this->children[] = GetterFactory::create($getter_configuration); } return $this; }