public function __construct($source, $target, $type, $revision) { $this->source = (string) $source; $this->target = (string) $target; $this->type = (string) $type; $this->revision = (string) $revision; }