public function incoming(Entity\Content $entity)
    {
        return $this->filter(function ($el) use ($entity) {
            /** @var Entity\Relations $el */
            return $el->getToContenttype() == (string) $entity->getContenttype() && $el->getToId() === $entity->getId();
        });
    }
public function incoming(Entity\Content $entity)
    {
        return $this->filter(function ($el) use ($entity) {
            /** @var Entity\Relations $el */
            return $el->getToContenttype() == (string) $entity->getContenttype() && $el->getToId() === $entity->getId();
        });
    }
public function incoming ( Entity \ Content $ entity ) { return $ this -> filter ( function ( $ el ) use ( $ entity ) { /** @var Entity\Relations $el */ return $ el -> getToContenttype ( ) == ( string ) $ entity -> getContenttype ( ) && $ el -> getToId ( ) === $ entity -> getId ( ) ; } ) ; }
Identifies which relations are incoming to the given entity.

@param Entity\Content $entity

@return mixed
Identifies which relations are incoming to the given entity .