/** * @param ContentInterface|PosterInterface $item * * @return bool */ public function isParent($item) { if (!$this->logged()) { return false; } return (bool) array_intersect([$this->getId(), $this->getUserId()], [$item->getId(), $item->getParentId(), $item->getParentUserId()]); }