public function __get($asserter) { switch (strtolower($asserter)) { case 'issha1': case 'issha256': case 'issha512': case 'ismd5': return $this->{$asserter}(); default: return parent::__get($asserter); } }
public function setWith($value, $charlist = null, $checkType = true) { parent::setWith($value, $charlist, false); if ($checkType === true) { if (self::isObject($value) === false) { $this->fail($this->_('%s is not an object', $this->getTypeOf($value))); } else { $this->pass(); $this->value = (string) $this->value; } } return $this; }