/** * Constructor * * @param Graph\Vertex $vertex the vertex that caused this error */ public function __construct(Graph\Vertex $vertex) { parent::__construct($vertex->__toString()); }
/** * PHP 5>=5.4.0 Implementation * @param Vertex $object * * @return mixed|string */ public function getHash($object) { return $object->__toString(); }