Open tacman opened 9 months ago
public function setDefaultLocale(string $locale): void { $this->defaultLocale = $locale; } // proposal: public function setDefaultLocale(string $locale): self { $this->defaultLocale = $locale; return $this; }
If this method were fluent, we could do the following.
// currently $project->setDefaultLocale('es'); $project->setTitle('dos libros'); // easier $project ->setDefaultLocale('es') ->setTitle('dos libros');
If this method were fluent, we could do the following.