/**
* Returns descendant of item
*
* @param Permission $item permission instance
* @return array
*/
public function fetchDescendant(Permission $item)
{
$key = $this->getCacheKey($item->siteKey, $item->name, 'descendant');
if (!($descendants = $this->cache->get($key))) {
$descendants = $this->repo->fetchDescendant($item);
if (!empty($descendants)) {
$this->cache->put($key, $descendants);
}
}
return $descendants;
}