public function setInterfaces(array $interfaces) { foreach ($interfaces as $interface) { $this->addInterface($interface); } return $this; }