programming-examples/php/Algo/BaseVertex.php

32 lines
533 B
PHP
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<?php
namespace Graphp\Algorithms;
use Graphp\Algorithms\Base;
use Fhaculty\Graph\Vertex;
/**
* Abstract base class for algorithms that operate on a given Vertex instance
*
* @deprecated
*/
abstract class BaseVertex extends Base
{
/**
* Vertex to operate on
*
* @var Vertex
*/
protected $vertex;
/**
* instantiate new algorithm
*
* @param Vertex $vertex Vertex to operate on
*/
public function __construct(Vertex $vertex)
{
$this->vertex = $vertex;
}
}