$propertyPath
*
* @return bool
*/
public static function isCallable($value, $message = null, $propertyPath = null)
{
if (!\is_callable($value)) {
$message = \sprintf(
static::generateMessage($message ?: 'Provided "%s" is not a callable.'),
static::stringify($value)
);
throw static::createException($value, $message, static::INVALID_CALLABLE, $propertyPath);
}
return true;
}
/**
* Assert that the provided value is valid according to a callback.
*
* If the callback returns `false` the assertion will fail.
*
* @param mixed $value
* @param callable $callback
* @param string|callable|null $message
* @param string|null $propertyPath
*
* @return bool
*/
public static function satisfy($value, $callback, $message = null, $propertyPath = null)
{
static::isCallable($callback);
if (false === \call_user_func($callback, $value)) {
$message = \sprintf(
static::generateMessage($message ?: 'Provided "%s" is invalid according to custom rule.'),
static::stringify($value)
);
throw static::createException($value, $message, static::INVALID_SATISFY, $propertyPath);
}
return true;
}
/**
* Assert that value is an IPv4 or IPv6 address
* (using input_filter/FILTER_VALIDATE_IP).
*
* @param string $value
* @param int|null $flag
* @param string|callable|null $message
* @param string|null $propertyPath
*
* @return bool
*
* @see http://php.net/manual/filter.filters.flags.php
*/
public static function ip($value, $flag = null, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
if (!\filter_var($value, FILTER_VALIDATE_IP, $flag)) {
$message = \sprintf(
static::generateMessage($message ?: 'Value "%s" was expected to be a valid IP address.'),
static::stringify($value)
);
throw static::createException($value, $message, static::INVALID_IP, $propertyPath, ['flag' => $flag]);
}
return true;
}
/**
* Assert that value is an IPv4 address
* (using input_filter/FILTER_VALIDATE_IP).
*
* @param string $value
* @param int|null $flag
* @param string|callable|null $message
* @param string|null $propertyPath
*
* @return bool
*
* @see http://php.net/manual/filter.filters.flags.php
*/
public static function ipv4($value, $flag = null, $message = null, $propertyPath = null)
{
static::ip($value, $flag | FILTER_FLAG_IPV4, static::generateMessage($message ?: 'Value "%s" was expected to be a valid IPv4 address.'), $propertyPath);
return true;
}
/**
* Assert that value is an IPv6 address
* (using input_filter/FILTER_VALIDATE_IP).
*
* @param string $value
* @param int|null $flag
* @param string|callable|null $message
* @param string|null $propertyPath
*
* @return bool
*
* @see http://php.net/manual/filter.filters.flags.php
*/
public static function ipv6($value, $flag = null, $message = null, $propertyPath = null)
{
static::ip($value, $flag | FILTER_FLAG_IPV6, static::generateMessage($message ?: 'Value "%s" was expected to be a valid IPv6 address.'), $propertyPath);
return true;
}
/**
* Assert that a constant is defined.
*
* @param mixed $constant
* @param string|callable|null $message
* @param string|null $propertyPath
*
* @return bool
*/
public static function defined($constant, $message = null, $propertyPath = null)
{
if (!\defined($constant)) {
$message = \sprintf(static::generateMessage($message ?: 'Value "%s" expected to be a defined constant.'), $constant);
throw static::createException($constant, $message, static::INVALID_CONSTANT, $propertyPath);
}
return true;
}
/**
* Assert that a constant is defined.
*
* @param string $value
* @param string|callable|null $message
* @param string|null $propertyPath
*
* @return bool
*/
public static function base64($value, $message = null, $propertyPath = null)
{
if (false === \base64_decode($value, true)) {
$message = \sprintf(static::generateMessage($message ?: 'Value "%s" is not a valid base64 string.'), $value);
throw static::createException($value, $message, static::INVALID_BASE64, $propertyPath);
}
return true;
}
/**
* Helper method that handles building the assertion failure exceptions.
* They are returned from this method so that the stack trace still shows
* the assertions method.
*
* @param mixed $value
* @param string|callable $message
* @param int $code
* @param string|null $propertyPath
* @param array $constraints
*
* @return mixed
*/
protected static function createException($value, $message, $code, $propertyPath = null, array $constraints = [])
{
$exceptionClass = static::$exceptionClass;
return new $exceptionClass($message, $code, $propertyPath, $value, $constraints);
}
/**
* Make a string version of a value.
*
* @param mixed $value
*
* @return string
*/
protected static function stringify($value)
{
$result = \gettype($value);
if (\is_bool($value)) {
$result = $value ? '' : '';
} elseif (\is_scalar($value)) {
$val = (string) $value;
if (\strlen($val) > 100) {
$val = \substr($val, 0, 97).'...';
}
$result = $val;
} elseif (\is_array($value)) {
$result = '';
} elseif (\is_object($value)) {
$result = \get_class($value);
} elseif (\is_resource($value)) {
$result = \get_resource_type($value);
} elseif (null === $value) {
$result = '';
}
return $result;
}
/**
* Generate the message.
*
* @param string|callable $message
*
* @return string
*/
protected static function generateMessage($message): string
{
if (\is_callable($message)) {
$traces = \debug_backtrace(0);
$parameters = [];
try {
$reflection = new \ReflectionClass($traces[1]['class']);
$method = $reflection->getMethod($traces[1]['function']);
foreach ($method->getParameters() as $index => $parameter) {
if ('message' !== $parameter->getName()) {
$parameters[$parameter->getName()] = \array_key_exists($index, $traces[1]['args'])
? $traces[1]['args'][$index]
: $parameter->getDefaultValue();
}
}
$parameters['::assertion'] = \sprintf('%s%s%s', $traces[1]['class'], $traces[1]['type'], $traces[1]['function']);
$message = \call_user_func_array($message, [$parameters]);
} // @codeCoverageIgnoreStart
catch (\Throwable $exception) {
$message = \sprintf('Unable to generate message : %s', $exception->getMessage());
} // @codeCoverageIgnoreEnd
}
return (string) $message;
}
}
ادامه فرآیند خرید “آموزش شگفت انگیز زبان انگلیسی دوازدهم خیلی سبز” به سبد خرید شما اضافه شد.
فلسفه دوازدهم بنی هاشمی
70,000 تومان قیمت اصلی 70,000 تومان بود. 59,500 تومان قیمت فعلی 59,500 تومان است.
ناموجود
کتاب فلسفه دوازدهم را می توان جزو بهترین کتاب از انتشارات بنی هاشمی معرفی کرد.
دانش آموز با هر دانشی می تواند ، به راحتی مطالب کتاب کمک درسی را درک کرده و به ذهن خود بسپارد.
از ویژگی های این کتاب می توانیم به موارد زیر اشاره کنیم :
دارای درسنامه
با خلاصه درس
با نمونه سوالات امتحانات نیم سال اول و دوم + دارای بارم بندی مطابق با استاندارد آموزش و پرورش و زمان بندی برای امتحان
دارای پاسخ تشریحی
برای توانمند کردن دانش آموزان در پاسخگویی به پرسشهای امتحانی (با رویکردی خلاصه محور)
دارای کارآزمون
برای رشته علوم انسانی
این کتاب کمک درسی جدیدترین نسخه چاپ شده است که بر اساس آخرین تغییرات کتاب درسی ویرایش و چاپ شده است.
مولف این کتاب حسین محمد ثانی نیز می باشد.
جزوه، فلسفه 12، دوره دوم متوسطه، نشر، کمک آموزشی، کمک درسی
خرید کتاب با تخفیف ویژه و ارسال کاملا رایگان درب منزل
شما می توانید کتاب کمک آموزشی فلسفه دوازدهم بنی هاشمی را با تخفیف ویژه و ارسال رایگان به سراسر کشور خریداری کنید. (شرایط تخفیف و ارسال رایگان )
اگر از طریق اینترنت نمی توانید سفارش دهید می توانید سفارش خود را از طریق تماس تلفنی و یا شماره واتس آپ ثبت نمایید.
در بانک کتاب مرسی کتاب هر کتابی پیدا میشه!
برای اطلاع از تخفیف های مرسی کتاب می توانید مشترک خبرنامه شوید و از تخفیف های 20% الی 50% تخفیف کتاب مطلع شوید. (اشتراک در خبر نامه )
اگر کتابی نیاز داشتید که داخل سایت merciketab.com موجود نبود می توانید از طریق تلفن 02166459726 یا شماره واتس آپ 09384279136 سفارش کتاب خود را ثبت کنید.
به این محصول / مطلب امتیاز دهید
منوی دسته بندی خود را در مسیر: "سربرگ ساز > چیدما موبایل > عنصر منوی موبایل > نمایش و مخفی کردن > انتخاب منو " تنظیم کنید
70,000 تومان قیمت اصلی 70,000 تومان بود. 59,500 تومان قیمت فعلی 59,500 تومان است.
ناموجود
برای دیدن محصولات که دنبال آن هستید تایپ کنید.
نقد و بررسیها
هنوز بررسیای ثبت نشده است.