/** * This is where traits would be useful * * {@inheritDoc} */ public function checkValue($data) { $length = strlen($data); return parent::checkValue($length); }
/** * This is where traits would be useful * * {@inheritDoc} */ public function checkValue($data) { $count = count(get_object_vars($data)); return parent::checkValue($count); }
/** * This is where traits would be useful * * {@inheritDoc} */ public function checkValue($data) { $count = count($data); return parent::checkValue($count); }