*/
public function __construct($keyword)
{
- if (self::isLanguageConstruct($keyword)) {
+ if (!self::isLanguageConstruct($keyword)) {
throw new \InvalidArgumentException('Unknown language construct: ' . $keyword);
}
return $params;
}
+ /**
+ * Gets the file name from a language construct.
+ *
+ * (Hint: it always returns false)
+ *
+ * @return bool false
+ */
+ public function getFileName()
+ {
+ return false;
+ }
+
/**
* To string.
*