code: public function getNames()
      {
          $names = array(
              $this->getName() => true,
          );
  
          foreach ($this->getProvides() as $link) {
              $names[$link->getTarget()] = true;
          }
  
          foreach ($this->getReplaces() as $link) {
              $names[$link->getTarget()] = true;
          }
  
          return array_keys($names);
      }
docs: {@inheritDoc}