/** * Getter. * * @param string $key * @return mixed|null|string */ public function __get($key) { if ($key === 'size_time') { $seconds = parent::__get($key); return $seconds ? Num::minutes($seconds) : null; } return parent::__get($key); }
/** * Getter. * * @param string $key * @return mixed|null|string */ public function __get($key) { if ($key === 'size_time') { $seconds = parent::__get($key); return $seconds ? Num::minutes($seconds) : null; } return parent::__get($key); }