<?php is_a(mixed $object_or_class, string $class, bool $allow_string = false): bool
<?php public function isImagick() { return is_a($this->data, 'Imagick'); }
<?php public function isInterventionImage() { return is_a($this->data, '\Intervention\Image\Image'); }
<?php public function isSplFileInfo() { return is_a($this->data, 'SplFileInfo'); }
<?php public function isSymfonyUpload() { return is_a($this->data, 'Symfony\Component\HttpFoundation\File\UploadedFile'); }
<?php $message = '%s accepts only array as argument %d.'; break; case 'closure': $valid = is_a($value, '\Closure'); $message = '%s accepts only Closure as argument %d.'; break; case 'digit':
<?php public function initFromObject($value) { if (is_a($value, '\ImagickPixel')) { $this->pixel = $value; } }
<?php $mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), $data); $length = strlen($data); if (function_exists('app') && is_a($app = app(), 'Illuminate\Foundation\Application')) { $response = IlluminateResponse::make($data); $response->header('Content-Type', $mime);