/** * @param string $valueToApply * @param Lisphp_List $list */ public function __construct($valueToApply, Lisphp_List $list = null) { $this->valueToApply = $valueToApply; $this->list = $list; $type = is_object($this->valueToApply) ? get_class($this->valueToApply) : (is_null($this->valueToApply) ? 'nil' : gettype($this->valueToApply)); $msg = "{$type} cannot be applied; see Lisphp_Applicable interface"; if ($list) { $msg .= ': ' . $list->__toString(); } parent::__construct($msg); }
/** * Constructor * * @param string $strMethod The method that was called. * @param object $objObject The object that the method was called on. * @return self */ public function __construct($strMethod, $objObject) { parent::__construct(sprintf('Attempted to call undefined method \'%s::%s\'.', get_class($objObject), $strMethod)); }
public function __construct($message = 'The call to specified function is invalid because of argument mismatch', $code = 0, $previous = NULL) { parent::__construct($message, $code, $previous); }
/** * Конструктор * */ public function __construct($message, $code, $file, $line) { $this->file = $file; $this->line = $line; parent::__construct($message, $code); }