File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ public function addUnsignedAttribute(UnsignedAttribute $newAttribute)
6868 public function getUnsignedAttributes ()
6969 {
7070 $ unsignedAttributes = $ this ->findUnsignedAttributes ();
71+
7172 if ($ unsignedAttributes ) {
72- return new UnsignedAttributes ($ this -> findUnsignedAttributes () );
73+ return new UnsignedAttributes ($ unsignedAttributes );
7374 }
7475 return null ;
7576 }
@@ -91,4 +92,19 @@ protected function createUnsignedAttributes()
9192
9293 return $ this ->getUnsignedAttributes ();
9394 }
95+
96+ /**
97+ * @return $this
98+ * @throws \FG\ASN1\Exception\Exception
99+ */
100+ public function deleteUnsignedAttributes ()
101+ {
102+ $ unsignedAttributes = $ this ->findUnsignedAttributes ();
103+
104+ if ($ unsignedAttributes ) {
105+ $ this ->object ->removeChild ($ unsignedAttributes );
106+ }
107+
108+ return $ this ;
109+ }
94110}
You can’t perform that action at this time.
0 commit comments