function __construct($mode) { if ($mode == self::MODE_STREAM) { throw new \InvalidArgumentException('Block ciphers cannot be ran in stream mode'); } parent::__construct($mode); }