Skip to content

Commit 1bbd165

Browse files
author
Martin Krulis
committed
Cleanup.
1 parent 0d9d778 commit 1bbd165

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

app/helpers/ExerciseConfig/Pipeline/Box/Boxes/base/ScalarToArrayBox.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
/**
1414
* Base for conversion boxes which take a scalar and produce a single-item array.
1515
*/
16-
class ScalarToArrayBox extends Box
16+
abstract class ScalarToArrayBox extends Box
1717
{
18-
public static $SCALAR_TO_ARRAY_TYPE = null;
19-
public static $DEFAULT_NAME = null;
20-
2118
/** Type key */
2219
public static $IN_PORT_KEY = "in";
2320
public static $OUT_PORT_KEY = "out";
@@ -62,14 +59,6 @@ public function __construct(BoxMeta $meta) {
6259
}
6360

6461

65-
/**
66-
* Get type of this box.
67-
* @return string
68-
*/
69-
public function getType(): string {
70-
return self::$SCALAR_TO_ARRAY_TYPE;
71-
}
72-
7362
/**
7463
* Get default input ports for this box.
7564
* @return array
@@ -90,14 +79,6 @@ public function getDefaultOutputPorts(): array {
9079
return self::$defaultOutputPorts;
9180
}
9281

93-
/**
94-
* Get default name of this box.
95-
* @return string
96-
*/
97-
public function getDefaultName(): string {
98-
return self::$DEFAULT_NAME;
99-
}
100-
10182

10283
/**
10384
* Compile box into set of low-level tasks.

0 commit comments

Comments
 (0)