PHPML\Exception\InvalidArgumentException::arraySizeNotMatch PHP Method

arraySizeNotMatch() public static method

public static arraySizeNotMatch ( ) : InvalidArgumentException
return InvalidArgumentException
    public static function arraySizeNotMatch()
    {
        return new self('Size of given arrays not match');
    }

Usage Example

Example #1
0
 /**
  * @param array $samples
  * @param array $targets
  *
  * @throws InvalidArgumentException
  */
 public function __construct(array $samples, array $targets)
 {
     if (count($samples) != count($targets)) {
         throw InvalidArgumentException::arraySizeNotMatch();
     }
     $this->samples = $samples;
     $this->targets = $targets;
 }
All Usage Examples Of PHPML\Exception\InvalidArgumentException::arraySizeNotMatch