public function expandDependency() { $expands = array(); foreach ($this->schemas as $schema) { $expands = array_merge($expands, $this->expandSchemaDependency($schema)); } $expands = array_unique($expands); return new self($expands); }