protected convertBlockFromHash ( mixed $hash ) : |
||
$hash | mixed | |
리턴 |
protected function convertBlockFromHash($hash)
{
if (isset($hash['items'])) {
$items = array();
foreach ($hash['items'] as $item) {
$items[] = $this->convertItemFromHash($item);
}
$hash['items'] = $items;
}
return new Block($hash);
}