status[$method] = Validator::$method($this->data, ...$parameters); return $this; } /** * Get data. * * @param string $data * * @return Validate */ public function data(string $data) : Validate { $this->data = $data; return $this; } /** * Get result * * @param void * * @return bool */ public function get() : bool { $this->data = NULL; foreach( $this->status as $method => $state ) { if( $state === false ) { return false; } } return true; } /** * Get status. * * @param void * * @return array */ public function status() : array { return $this->status; } }