for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the bisarca/graph package.
*
* (c) Emanuele Minotto <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bisarca\Graph\Edge;
/**
* ...
trait SetTrait
{
abstract public function getEdgeSet(): Set;
* Sets the contained edges.
* @param EdgeInterface[] $edges
public function setEdges(EdgeInterface ...$edges)
$this
->getEdgeSet()
->set(...$edges);
}
* Adds some edges.
public function addEdges(EdgeInterface ...$edges)
->add(...$edges);
* Checks if all the edges are contained.
* @return bool
public function hasEdges(EdgeInterface ...$edges): bool
return $this
->has(...$edges);
* Removes some edges.
public function removeEdges(EdgeInterface ...$edges)
->remove(...$edges);
* Remove all contained elements.
public function clearEdges()
->clear();
* Checks if no elements are contained.
public function isEmptyEdges(): bool
->isEmpty();
* {@inheritdoc}
public function countEdges(): int
->count();